Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp318886ybi; Tue, 18 Jun 2019 23:33:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSQB6I8j+QmWcEP4k+JXPtVxBjOzkmV/bPUAIB1upkaps9q3MPMaunTUdvUoYeWxje/ntD X-Received: by 2002:a17:90a:9a8d:: with SMTP id e13mr9566111pjp.77.1560926024758; Tue, 18 Jun 2019 23:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560926024; cv=none; d=google.com; s=arc-20160816; b=LElhiFKYY0GDZE73anYWHI+DlT4kaCPvQAZjhQb/SvjQLUg6BBuykSjj/diHUDl49W oPA0L6v8SLqBo4hOyI2aCGrybLlv3BcS6dfeGGkmzjRnHxUcDlctAwgnLr/51k6wSQSq WjznfD9I/rjfXAzN6NTyQ5hzxefodFr44NYdEZ+KDyaoR2Q5Rd9gDu6QHT/aS6DJzArJ JqGNoavPk3NupeioITvwIa91Om0sddE2mz+SLoXmP52GYqhp7ht9Y7syBm5hw8nMGTOc fk0H1fgsenJjl2cT33EZT0Rh30M5Ze5O0CoLIA8OVYwuVpnD+NanB+DHv/r8UfYQl70T Pgfw== 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; bh=Ruif/QM5YZrz+RFE8Mm3k5lBDfvQZXyGOWFSaQ20srA=; b=qmTGzQDpvjce0CExeMnG+loz84G5V2ffXOQ+Xtpv6q6Gca+kn/bd/ie5R76UEjVa4X +BEf/rAUAvHQKYgE2oS7PT2NwC+40CuoODvrVA6ApO76aWY3uR9jyxmkutex4pdNKJXd /euDMjyPFNrqxyiZ1RA19g3kMAmydlep37ZkH8Az2g2/H+5tslesTSc9fgYP9arXguDC p7Ay8iS9E/HMe1tvoNihplPcY4XDWdrX2GwFO6iqFcB1/1U3evjqV43jTkUpDq6jxwcY Lf6U2cdX4P9xf45BYxRfHHdM/g8vg6yEleFQGHzFd8YtmHTnyjwnpR0mAAw8s+eAQ2vk lrtg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si14291323plr.412.2019.06.18.23.33.27; Tue, 18 Jun 2019 23:33:44 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbfFSGdX (ORCPT + 99 others); Wed, 19 Jun 2019 02:33:23 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44049 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbfFSGdW (ORCPT ); Wed, 19 Jun 2019 02:33:22 -0400 Received: from 162-237-133-238.lightspeed.rcsntx.sbcglobal.net ([162.237.133.238] helo=lindsey) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hdU9f-0001HK-Q8; Wed, 19 Jun 2019 06:33:12 +0000 Date: Wed, 19 Jun 2019 01:33:08 -0500 From: Tyler Hicks To: YueHaibing Cc: viro@zeniv.linux.org.uk, agruenba@redhat.com, linux-kernel@vger.kernel.org, ecryptfs@vger.kernel.org Subject: Re: [PATCH -next] ecryptfs: Make ecryptfs_xattr_handler static Message-ID: <20190619063307.GA22021@lindsey> References: <20190614155117.28988-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614155117.28988-1-yuehaibing@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-06-14 23:51:17, YueHaibing wrote: > Fix sparse warning: > > fs/ecryptfs/inode.c:1138:28: warning: > symbol 'ecryptfs_xattr_handler' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Thanks for the cleanup! I've pushed this to the eCryptfs next branch. Tyler > --- > fs/ecryptfs/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c > index 1e994d7..18426f4 100644 > --- a/fs/ecryptfs/inode.c > +++ b/fs/ecryptfs/inode.c > @@ -1121,7 +1121,7 @@ static int ecryptfs_xattr_set(const struct xattr_handler *handler, > } > } > > -const struct xattr_handler ecryptfs_xattr_handler = { > +static const struct xattr_handler ecryptfs_xattr_handler = { > .prefix = "", /* match anything */ > .get = ecryptfs_xattr_get, > .set = ecryptfs_xattr_set, > -- > 2.7.4 > >