audit: make symbol 'audit_nfcfgs' static
authorZheng Bin <zhengbin13@huawei.com>
Wed, 29 Apr 2020 09:26:48 +0000 (17:26 +0800)
committerPaul Moore <paul@paul-moore.com>
Fri, 1 May 2020 16:24:07 +0000 (12:24 -0400)
Fix sparse warnings:

kernel/auditsc.c:138:32: warning: symbol 'audit_nfcfgs' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/auditsc.c

index d281c18d1771a6708a89ec3787d79149832f1137..cfe3486e5f31a55a2e1ce209e0596d196dd17abb 100644 (file)
@@ -135,7 +135,7 @@ struct audit_nfcfgop_tab {
        const char              *s;
 };
 
-const struct audit_nfcfgop_tab audit_nfcfgs[] = {
+static const struct audit_nfcfgop_tab audit_nfcfgs[] = {
        { AUDIT_XT_OP_REGISTER,         "register"      },
        { AUDIT_XT_OP_REPLACE,          "replace"       },
        { AUDIT_XT_OP_UNREGISTER,       "unregister"    },