Skip to content

Commit db9ff6e

Browse files
zhengbin13pcmoore
authored andcommitted
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 <[email protected]> Signed-off-by: Zheng Bin <[email protected]> Signed-off-by: Paul Moore <[email protected]>
1 parent a45d885 commit db9ff6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/auditsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct audit_nfcfgop_tab {
135135
const char *s;
136136
};
137137

138-
const struct audit_nfcfgop_tab audit_nfcfgs[] = {
138+
static const struct audit_nfcfgop_tab audit_nfcfgs[] = {
139139
{ AUDIT_XT_OP_REGISTER, "register" },
140140
{ AUDIT_XT_OP_REPLACE, "replace" },
141141
{ AUDIT_XT_OP_UNREGISTER, "unregister" },

0 commit comments

Comments
 (0)