diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-04-29 11:26:48 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-05-01 18:24:07 +0200 |
commit | db9ff6ecf6efa6ffc45bfd5dc8d5708cfe5e89cb (patch) | |
tree | 248abc9b8a75ce3b1b904c0324e13168021b145b /kernel | |
parent | netfilter: add audit table unregister actions (diff) | |
download | linux-db9ff6ecf6efa6ffc45bfd5dc8d5708cfe5e89cb.tar.xz linux-db9ff6ecf6efa6ffc45bfd5dc8d5708cfe5e89cb.zip |
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>
Diffstat (limited to 'kernel')
-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" }, |