[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <BC0E3531-B282-4C04-9540-C39C6F4A1A5D@oracle.com>
Date: Wed, 4 Mar 2020 13:00:12 -0500
From: Chuck Lever <chuck.lever@...cle.com>
To: YueHaibing <yuehaibing@...wei.com>
Cc: Bruce Fields <bfields@...ldses.org>,
Olga Kornievskaia <kolga@...app.com>,
Linux NFS Mailing List <linux-nfs@...r.kernel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] nfsd: Fix build error
Hi-
> On Mar 4, 2020, at 8:18 AM, YueHaibing <yuehaibing@...wei.com> wrote:
>
> fs/nfsd/nfs4proc.o: In function `nfsd4_do_copy':
> nfs4proc.c:(.text+0x23b7): undefined reference to `nfs42_ssc_close'
> fs/nfsd/nfs4proc.o: In function `nfsd4_copy':
> nfs4proc.c:(.text+0x5d2a): undefined reference to `nfs_sb_deactive'
> fs/nfsd/nfs4proc.o: In function `nfsd4_do_async_copy':
> nfs4proc.c:(.text+0x61d5): undefined reference to `nfs42_ssc_open'
> nfs4proc.c:(.text+0x6389): undefined reference to `nfs_sb_deactive'
>
> Add dependency to NFSD_V4_2_INTER_SSC to fix this.
>
> Fixes: ce0887ac96d3 ("NFSD add nfs4 inter ssc to nfsd4_copy")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
> fs/nfsd/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig
> index f368f32..fc587a5 100644
> --- a/fs/nfsd/Kconfig
> +++ b/fs/nfsd/Kconfig
> @@ -136,6 +136,7 @@ config NFSD_FLEXFILELAYOUT
>
> config NFSD_V4_2_INTER_SSC
> bool "NFSv4.2 inter server to server COPY"
> + depends on !(NFSD=y && NFS_FS=m)
The new dependency is not especially clear to me; more explanation
in the patch description about the cause of the build failure
would definitely be helpful.
NFSD_V4 can't be set unless NFSD is also set.
NFS_V4_2 can't be set unless NFS_V4_1 is also set, and that cannot
be set unless NFS_FS is also set.
So what's really going on here?
> depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2
> help
> This option enables support for NFSv4.2 inter server to
> --
> 2.7.4
>
>
--
Chuck Lever
Powered by blists - more mailing lists