diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-04-29 17:26:48 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-05-01 12:24:07 -0400 |
commit | db9ff6ecf6efa6ffc45bfd5dc8d5708cfe5e89cb (patch) | |
tree | 248abc9b8a75ce3b1b904c0324e13168021b145b | |
parent | a45d88530b2552ad5ea0da18861600b4ecc9d0c7 (diff) |
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>
-rw-r--r-- | kernel/auditsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index d281c18d1771..cfe3486e5f31 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -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" }, |