History

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?

Zheng Bin committed 6 years ago

Commit db9ff6e1 parent a45d8851 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/auditsc.c+1−1
@@ -135,7 +135,7 @@ struct audit_nfcfgop_tab { · 134 unmodified lines
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" },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t