Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1113473ybi; Fri, 14 Jun 2019 08:52:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSfaKNxoI5yNPSOiSVazqrge/788a0CF483nAi4opOJV2bY9eHizdhVk8VAkLcJShKvEgl X-Received: by 2002:a63:834a:: with SMTP id h71mr2016155pge.68.1560527524727; Fri, 14 Jun 2019 08:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560527524; cv=none; d=google.com; s=arc-20160816; b=lpDOrYUegxVMghIzI54DgTnnaaEu7H4g5YhQ3kkoYYyD5gLmzTjI0sBFeUatGhPOM/ FT+ynGITFWFtgtxnIkLMijVLlpOABcSGLU8SEbA8L2xp7DdA6P73QWoq3E7zSkZ8+Hod drk3apS/OWTxDnrh2aSo5fTYE43O7Jr4jHZw65cbKFXuNbqASX/gd8JgMfPpXNV/h1Kx cQ5T4FdG2PiZ+gcFlDmN4SQFvsi0P38feKLWJFaFfQIYRHktHhE0Q4vR6AlfcxpZlC13 hVPDVAT1Z1qnXeqDB6m8MzKBSIUaDT5xFpfjvBuPxUSA7gB+8OaUniOsYLNkKUO4j1bj 8hCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=m4T3kTumnaMBkgKMG0+J+646K9TQPtMnQwOxiq+Jylg=; b=bj84mkfK7UxKnlcOp75A+qTl7pYVcK5JDc/XDJ3k8cu8f1Uf1oAHTMJVhxz67K0+ak xzp5ylylpprJna2w3M89xfgw+YKdT06FRSWE/yzCfJRP9FgLd8nTPxc9sMvOqpm3KVO2 9CcY9eo+9xdyPb9W89JBmSqmtieR6b1qNN6E3a05EUBssCGGPjm4UgjKnkYn7uRJCK1B ahinJvdRRDEhL53BI8MtjOJcsVfyiCOO9pvRz0DjgiTZycW3bWS/PsgkMGZQmnCteDOK XkYrd674X/WDBaH2YDYv6tY6jSJgdXFDKBCvyDEFpYvqNKpq20TYiVlAO8PXSiGJk4ek JZkg== 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 g3si3068805pgh.189.2019.06.14.08.51.49; Fri, 14 Jun 2019 08:52:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725922AbfFNPvj (ORCPT + 99 others); Fri, 14 Jun 2019 11:51:39 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:18611 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725775AbfFNPvi (ORCPT ); Fri, 14 Jun 2019 11:51:38 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 63FCCF5455CB3C68DAB6; Fri, 14 Jun 2019 23:51:35 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Fri, 14 Jun 2019 23:51:26 +0800 From: YueHaibing To: , , CC: , , YueHaibing Subject: [PATCH -next] ecryptfs: Make ecryptfs_xattr_handler static Date: Fri, 14 Jun 2019 23:51:17 +0800 Message-ID: <20190614155117.28988-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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