Received: by 10.223.176.46 with SMTP id f43csp1206123wra; Fri, 19 Jan 2018 08:17:55 -0800 (PST) X-Google-Smtp-Source: ACJfBou4vmBr5ZVFKkyS70L0yFLiu5NEiClIfxYpmfUns6gZ8OcymjxP9mR7Iv0mRSJmjyroZOa6 X-Received: by 2002:a17:902:323:: with SMTP id 32-v6mr1262584pld.169.1516378675374; Fri, 19 Jan 2018 08:17:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516378675; cv=none; d=google.com; s=arc-20160816; b=YzKg45WaISN4xBU/eIrkTKj+RckKLZXy67e72A/9QkFlOP/hGNAyRDq8qqveGeQWRB 74d84MC9qQup4pm2mrqgXCicPhUxwuzVlp/sMuyxxBKmDR8xqQJ4k/xyjv2dCpI20e2B nU4tQgI5D+X3XCsLrUhp4DLSqOFv2b05nPlCpDHxL92nx2w6rX5N8QPhY0D15vOR6LFn wPM/t+pObKRSZKJpwrxFjFpkCVTIXAsjBCl/lY0y04h7SnIiQ3DYZY/RhMz5hZ2c7v9h KGziXOGd73l07+v+YGphk3rxS6PD4wRt7u73UUclVlA/WqNBzeR2XbbEmDFAtfvmP510 YySQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=iJ0q+tM+YaZNf3tIIv3ocrJ00mImrW+bvP8iwe/GS78=; b=d2hrUoMHvUS3xszAVgdKZhNR5rSQST4e2pfR1LIbzaYEpS1hgXLDA4SJ1vYYj19TUg PcPdKqcH50d7De1kkj1DTmdKek5H8e9f+PKW9RbeVa/axK0ZUQdpiK9mcHv0qftbaEP8 1pM6fxNhzXeJAK08B+e+hdJXGujokzQdu+Dxi1riB7OZKTUcNh1MpPEq68r7V+ja2SfI viUWxjH+sbbG9fwrPjHXk1E9dvrgLzg+I+rZi/WcOdfT4PiTvksLFv5PuxGegsrp7kR3 qAtLmUDdheZKdGIxnHcv5S8plufGO+DmRaRKlHfLeUQ2Gp7O5luD07WWE7efEp/WL1+d rOSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=u+3HeIyR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si1208752pgp.160.2018.01.19.08.17.40; Fri, 19 Jan 2018 08:17:55 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=u+3HeIyR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756079AbeASQPv (ORCPT + 99 others); Fri, 19 Jan 2018 11:15:51 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:36372 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755847AbeASQPp (ORCPT ); Fri, 19 Jan 2018 11:15:45 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w0JGCKad062158; Fri, 19 Jan 2018 16:15:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2017-10-26; bh=iJ0q+tM+YaZNf3tIIv3ocrJ00mImrW+bvP8iwe/GS78=; b=u+3HeIyR//GBdLm4UKX8kI83gJ4SUkGr0BSTaqGbK1XJrg9Wdx468zP+3Awg0BurA2o4 4PQlC/UyGVxPV3V21b5lSgx/uynq+GtbWIVzlQTTwIYhuFszW24eDejaQLC8cdCJrHT0 0n2nUABi89AvBz4hcI3q+SyrlCld2LSHUunKCzPJc5VGzs+/FbOnpr8u+ayzL8fqlWtJ KtTkAozp9o4fnTn1tO2m3IRoOdgk4gTb8HZsQGLJkpc5+pFIlpMQTujKCUcQ5lCRDV+1 S8VH+3mTjVF+jL7hHkLAM+2JJiLpKDMVUMqNkMTEJvCckgpYtWMwPoTQqAFOztBM0cNy /g== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2fkka9g94b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 Jan 2018 16:15:38 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w0JGFac8008589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Jan 2018 16:15:37 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w0JGFZu9010356; Fri, 19 Jan 2018 16:15:36 GMT Received: from anon-dhcp-171.1015granger.net (/68.61.232.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Jan 2018 08:15:35 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH] NFSD: hide unused svcxdr_dupstr() From: Chuck Lever In-Reply-To: <20180119145410.1096453-1-arnd@arndb.de> Date: Fri, 19 Jan 2018 11:15:33 -0500 Cc: Bruce Fields , Jeff Layton , Trond Myklebust , Kinglong Mee , Linux NFS Mailing List , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <894D5C4E-5AC6-4E77-A318-875433D0E45D@oracle.com> References: <20180119145410.1096453-1-arnd@arndb.de> To: Arnd Bergmann X-Mailer: Apple Mail (2.3445.5.20) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8778 signatures=668654 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=943 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801190212 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jan 19, 2018, at 9:54 AM, Arnd Bergmann wrote: >=20 > 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: >=20 > fs/nfsd/nfs4xdr.c:241:1: error: 'svcxdr_dupstr' defined but not used = [-Werror=3Dunused-function] >=20 > This adds another #ifdef around the definition. >=20 > 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 > --- > fs/nfsd/nfs4xdr.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > 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] =3D '\0'; > return p; > } > +#endif >=20 > /** > * savemem - duplicate a chunk of memory for later processing > --=20 > 2.9.0 >=20 > -- > 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