Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4464082ybi; Tue, 11 Jun 2019 07:06:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqweNEfiMrGyzRTRJyu2WcoRELI7dWCpq5lwH9luDWJv3UcFXc2QtoOej8/EAMHIw1g6tHZj X-Received: by 2002:a63:234c:: with SMTP id u12mr20727436pgm.264.1560262014642; Tue, 11 Jun 2019 07:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560262014; cv=none; d=google.com; s=arc-20160816; b=qAJHQlAq0hpb2vXRUsV1fFrmEsDS85x65cxBH+e8EBkKVt4d7LIa/JTeC+04LnNulR 475H0UGmpXkNOrrzccZBkAnfKNtEOXmyLdjoTyVPW2Oan6i4S08VyH0yzEflctp2LhEx jYr0GIqdKeU9oqL10XpUIEIjeqYwYaYmOJMCFMDLPsR14i6sWiR4QQ+IlAM9wlP1KEOR UPz027B1V5vwgxyuf+N6vBvw9vna+AlqXkZhJp4mbSp771H2dLBBhaF1BivAhnHuZRJ3 9OLDnQ54Dt6GGTDdp5U84yLVWLpuN1Z4ZA58NKEKVdUO+6JoqUQLjOzq5eQSbFvXrO50 s5Xw== 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=oHerzMUhds+fWCjqG5oRlzuK2122/Z3bFz47ptGF3a8=; b=CQwUpMMV9ex2yJwocS48iRdKxEjZK/VetjcSvluAPgeM6yqgSGha708z3aehY5dH8u FG40hoPyjanPMUo8GeF1OqThrGSeJ6YQbRNpt+ZGghB62GksCssNPjlmLVHUFgMxAyod +6ETtR2jeAFz9+5FcVqq7Gu7TAOKPSqX8NEn0lqp2zhJHSpnSlxVQ4f5xOdVVIURlX7v 854k4/igFKMOKtGflG5d2pZqt71dT8qnF5GiskeGkUnyK4MvQs0WDYinBaCy3d2LFKvv +QTVq266FPJuWV7k4AkKUH/yypnqigegeqkB1v4xA5I0RfHH3qfTyiquOf7RAV/tue5L ymrg== 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 g31si13011602plb.241.2019.06.11.07.06.39; Tue, 11 Jun 2019 07:06:54 -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 S2404130AbfFKNky (ORCPT + 99 others); Tue, 11 Jun 2019 09:40:54 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:18548 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2403885AbfFKNky (ORCPT ); Tue, 11 Jun 2019 09:40:54 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D4B7443CC9D69D440122; Tue, 11 Jun 2019 21:40:50 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Tue, 11 Jun 2019 21:40:40 +0800 From: YueHaibing To: , , , CC: , , , YueHaibing Subject: [PATCH -next] ima: Make arch_policy_entry static Date: Tue, 11 Jun 2019 21:40:32 +0800 Message-ID: <20190611134032.14656-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: security/integrity/ima/ima_policy.c:202:23: warning: symbol 'arch_policy_entry' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- security/integrity/ima/ima_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c index 1cc822a..cd1b728 100644 --- a/security/integrity/ima/ima_policy.c +++ b/security/integrity/ima/ima_policy.c @@ -199,7 +199,7 @@ static struct ima_rule_entry secure_boot_rules[] __ro_after_init = { }; /* An array of architecture specific rules */ -struct ima_rule_entry *arch_policy_entry __ro_after_init; +static struct ima_rule_entry *arch_policy_entry __ro_after_init; static LIST_HEAD(ima_default_rules); static LIST_HEAD(ima_policy_rules); -- 2.7.4