Received: by 10.223.176.46 with SMTP id f43csp1220584wra; Fri, 19 Jan 2018 08:29:34 -0800 (PST) X-Google-Smtp-Source: ACJfBovKCkgR2auA+mFu538gPIlQnzmV7CTalfJBizYmn8JTT5n/Ek2eEwxj/mreScnLCy8eoLTa X-Received: by 10.101.97.12 with SMTP id z12mr7735853pgu.92.1516379374023; Fri, 19 Jan 2018 08:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516379373; cv=none; d=google.com; s=arc-20160816; b=bK+F2/Jq6Zlec7/1hOsOZopdCLqyoaaIqCm87u6CQCntjmDIdE/lwn60G7Oxeq5SWO XD80aUOEGkVWbpMg17JwZC+pqSTDh96hVc276mOw+D4MTtxcmFUZsR/MKwh1cAlAYVB7 qOFf5IpYAOEMc/Bc00NPpLdlxsCRMBlX7LHDhRc2Vjne5Wp41C9BRf37xV+nc6Ejriss ZFgsF0Ykdxc7jNAwCU4eJ+ewAYmnMzSHNPqzt1olMDjn1hSm2I1FOG8fsjEXwxNgWwFL u0QMH0kFToBh5mYJ9g/mahY0yZuxqRvhHgosmUZFBIpZBtSCbTEEaV6SB3wk8/XAOFji nVSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=TMw3QSyPRaaalFpqAyQ3cRNbIkpF/mWUhmi8VhsHR8U=; b=N20zuIiw3LjIzjQAjk/CvdaWGsBTjN+CcYODmyOtFcFlXYMC8aTsQaKTABUnSblna5 6XPGglyKRF/tafRBE/1HVZjeUKmXkd3OeJFy71BptXRhAdVgHw1FdSChLhba4I2vBBz9 iu7HRmaiBRBYZxviV6DlD/pZ6xkNdtMhPNawU4z/3saw3AsSvXrskJYm+BhkLk2WMLKy mUQSKXG5o8C5dfQPyHfG4oZRlbYw+Z3JZp/HXVD9rA0csezKr7jdP+aXasbEWUg0v7RS zYU6aj1FC6751h1Wibfvs2EhJpCKBBVdVP5QixtlMrSbUmyktnpkmxOd6XiGtNKIGFVm HztQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1-v6si935652pli.11.2018.01.19.08.29.20; Fri, 19 Jan 2018 08:29:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756166AbeASQ1Z (ORCPT + 99 others); Fri, 19 Jan 2018 11:27:25 -0500 Received: from fieldses.org ([173.255.197.46]:51548 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755775AbeASQ1T (ORCPT ); Fri, 19 Jan 2018 11:27:19 -0500 Received: by fieldses.org (Postfix, from userid 2815) id 09525189; Fri, 19 Jan 2018 11:27:19 -0500 (EST) Date: Fri, 19 Jan 2018 11:27:19 -0500 From: Bruce Fields To: Chuck Lever Cc: Arnd Bergmann , Jeff Layton , Trond Myklebust , Kinglong Mee , Linux NFS Mailing List , linux-kernel@vger.kernel.org Subject: Re: [PATCH] NFSD: hide unused svcxdr_dupstr() Message-ID: <20180119162719.GB12065@fieldses.org> References: <20180119145410.1096453-1-arnd@arndb.de> <894D5C4E-5AC6-4E77-A318-875433D0E45D@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <894D5C4E-5AC6-4E77-A318-875433D0E45D@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 11:15:33AM -0500, Chuck Lever wrote: > > > > On Jan 19, 2018, at 9:54 AM, Arnd Bergmann wrote: > > > > There is now only one caller left for svcxdr_dupstr() and this is inside > > of an #ifdef, so we can get a warning when the option is disabled: > > > > fs/nfsd/nfs4xdr.c:241:1: error: 'svcxdr_dupstr' defined but not used [-Werror=unused-function] > > > > This adds another #ifdef around the definition. > > > > Fixes: e40d99e6183e ("NFSD: Clean up symlink argument XDR decoders") > > Signed-off-by: Arnd Bergmann > > Seems OK to me, and sorry for the noise. > > Reviewed-by: Chuck Lever Thanks! --b. > > > > --- > > fs/nfsd/nfs4xdr.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c > > index f51c9cccaf78..374a62af6034 100644 > > --- a/fs/nfsd/nfs4xdr.c > > +++ b/fs/nfsd/nfs4xdr.c > > @@ -237,6 +237,7 @@ svcxdr_tmpalloc(struct nfsd4_compoundargs *argp, u32 len) > > * Note null-terminating in place usually isn't safe since the > > * buffer might end on a page boundary. > > */ > > +#ifdef CONFIG_NFSD_V4_SECURITY_LABEL > > static char * > > svcxdr_dupstr(struct nfsd4_compoundargs *argp, void *buf, u32 len) > > { > > @@ -248,6 +249,7 @@ svcxdr_dupstr(struct nfsd4_compoundargs *argp, void *buf, u32 len) > > p[len] = '\0'; > > return p; > > } > > +#endif > > > > /** > > * savemem - duplicate a chunk of memory for later processing > > -- > > 2.9.0 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-nfs" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > Chuck Lever > >