linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: nfs tree build failures
@ 2009-04-06  6:29 Stephen Rothwell
  2009-04-06  7:43 ` Benny Halevy
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2009-04-06  6:29 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-next, Benny Halevy, Andy Adamson, J. Bruce Fields

Hi Trond,

Today's linux-next build (powerpc ppc44x_config) failed like this:

fs/nfs/client.c: In function 'nfs_match_client':
fs/nfs/client.c:444: error: 'struct nfs_client' has no member named 'cl_minorversion'

Caused by commit 10d5a514705f0687cfbb6a080c3562b857e340fe ("nfs41: Use
mount minorversion option").  The existence of cl_minorversion is
controlled by CONFIG_NFS_V4 but the reference is not.

I added the small patch below for today.

The same build gets this warning as well:

fs/nfs/client.c:554: warning: 'nfs4_session_set_rwsize' defined but not used

and then fails like this:

fs/built-in.o: In function `nfs_readpage_result_full':
read.c:(.text+0x70d24): undefined reference to `nfs4_restart_rpc'
fs/built-in.o: In function `nfs_readpage_result_partial':
read.c:(.text+0x70e3c): undefined reference to `nfs4_restart_rpc'
fs/built-in.o: In function `nfs_async_unlink_done':
unlink.c:(.text+0x71af0): undefined reference to `nfs4_restart_rpc'
fs/built-in.o: In function `nfs_writeback_done':
(.text+0x72c00): undefined reference to `nfs4_restart_rpc'

Caused by commit c105a9f16f11aaa9fcb9f75f8342b89c5d9665cf ("nfs41: use
rpc prepare call state for session reset") which I have reverted for
today.

Trond, is all this NFS v4.1 stuff that turned up yesterday really 2.6.30
material?  If not, it should be removed from linux-next until after
2.6.30-rc1 is released.  (and clearly better tested ...)

Bruce, I guess the same question applies to the nfsd tree as well.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 6 Apr 2009 15:45:06 +1000
Subject: [PATCH] nfs: build fix for client.c

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 fs/nfs/client.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 82ddca9..75329d3 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -440,9 +440,11 @@ static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *dat
 
 		if (clp->cl_proto != data->proto)
 			continue;
+#ifdef CONFIG_NFS_V4
 		/* Match nfsv4 minorversion */
 		if (clp->cl_minorversion != data->minorversion)
 			continue;
+#endif
 		/* Match the full socket address */
 		if (!nfs_sockaddr_cmp(sap, clap))
 			continue;
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-06 23:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-06  6:29 linux-next: nfs tree build failures Stephen Rothwell
2009-04-06  7:43 ` Benny Halevy
2009-04-06  7:49   ` [PATCH 1/3] SQUASHME: nfs41: always define nfs_client.cl_minorversion Benny Halevy
     [not found]   ` <49D9B2B9.5010401-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
2009-04-06  7:49     ` [PATCH 2/3] SQUASHME: nfs41: move nfs4_session_set_rwsize into CONFIG_NFS_V4 Benny Halevy
2009-04-06  7:50     ` [PATCH 3/3] SQUASHME: inline nfs4_restart_rpc Benny Halevy
2009-04-06 23:34   ` linux-next: nfs tree build failures Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).