Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp713132img; Fri, 22 Mar 2019 07:07:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBt/Wf2WBpMGAzGSQzcsqmbhWtY+Z/XoYgXmD4yR7/oUMRClMwnEbL9HjRl0FwPgrhL7Py X-Received: by 2002:a62:55c7:: with SMTP id j190mr9163533pfb.226.1553263624766; Fri, 22 Mar 2019 07:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553263624; cv=none; d=google.com; s=arc-20160816; b=XlGfGhTZR095pu3vPFsJG2E8hvEgUTavD/DuJ8i0mJE9wX6WB2HBFQdtEHrKsStzjz hkO3UoPRSZb/RR3OJB5wEJmELTyAx0zCtAxqS1StCFQ6nBGll06VZ3ZPMRmkeXoL1StG pJVpREIlZMLkmUFS9SaBHEJYu6L2Yzjks7zObTxFiTOWDrZI6Wpim/dvFY7s6DwQA3NH 8O0vo+i88JJHg0RUExZBmIJ2GOT787nXJCuZVw9CwQy3DtK8BC6P4sy6V5OLBIUFYNfm WRshZfxP4B5lLCyz0rvJPL/Nr6ZaGBXfbP7ZmRr+8cGVWGkR74SV7fSN3iYVaVCrJ+lD ljeQ== 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=15QfJouKnFk68IODQNDHs/GpSrTyGeu4GON2MKex7nU=; b=cR3ncWklHl6q+Odl8VEmzYHLXq1DLbjlH61U/kAwBOxnlCPjPJcaVcjKoZEQltmHGd ymy5Bt5C19dL9JtOJYl1oGr76vNq7nZ04dxumHhz/v0BW9+hlpV9/EL+w1gswVCgQXWz Ww1lp1vaVE09sMdxpYoLT1FfngEEHROg8INTEZ0jA1PTeOzrPcL1X5KyD7FwhMM8atOa lv3dh2CyzOqmLG1gCRci3g4ScmSKyfn/4DguYqDH8kv2iEU66Ro89IR4fyrqVG5Gn+Vx BgFNvOkjh6Z78wnnqT9CQr1+bykcTgqlGp0VWeuNOG4dMS15rMBDGNn9DqbZMXVCYwBl DuJw== 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 y1si7636159plb.276.2019.03.22.07.06.46; Fri, 22 Mar 2019 07:07: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 S1728045AbfCVOEX (ORCPT + 99 others); Fri, 22 Mar 2019 10:04:23 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:36818 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727487AbfCVOEX (ORCPT ); Fri, 22 Mar 2019 10:04:23 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 93AB923E581FDAC0502D; Fri, 22 Mar 2019 22:04:18 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.408.0; Fri, 22 Mar 2019 22:04:09 +0800 From: Yue Haibing To: , , CC: , , YueHaibing Subject: [PATCH -next] selinux: Make selinux_kernfs_init_security static Date: Fri, 22 Mar 2019 22:04:00 +0800 Message-ID: <20190322140400.18892-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.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing --- security/selinux/hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index ab4b049..b6e6152 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3386,8 +3386,8 @@ static int selinux_inode_copy_up_xattr(const char *name) /* kernfs node operations */ -int selinux_kernfs_init_security(struct kernfs_node *kn_dir, - struct kernfs_node *kn) +static int selinux_kernfs_init_security(struct kernfs_node *kn_dir, + struct kernfs_node *kn) { const struct task_security_struct *tsec = current_security(); u32 parent_sid, newsid, clen; -- 2.7.0