audit: make symbol 'audit_nfcfgs' static

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>
This commit is contained in:
Zheng Bin 2020-04-29 17:26:48 +08:00 committed by Paul Moore
parent a45d88530b
commit db9ff6ecf6

View 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" },