summaryrefslogtreecommitdiff
path: root/security/selinux/ss/hashtab.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2020-11-19 05:15:08 +0300
committerPaul Moore <paul@paul-moore.com>2021-10-13 23:31:51 +0300
commite9fd7292935906c09824a10bc27b48fd3992c366 (patch)
treeecae301d4bd3d9aadcd182c3f9358dffc9177464 /security/selinux/ss/hashtab.c
parent1d1e1ded13568be81a0e19d228e310a48997bec8 (diff)
downloadlinux-e9fd7292935906c09824a10bc27b48fd3992c366.tar.xz
selinux: fix all of the W=1 build warnings
There were a number of places in the code where the function definition did not match the associated comment block as well at least one file where the appropriate header files were not included (missing function declaration/prototype); this patch fixes all of these issue such that building the SELinux code with "W=1" is now warning free. % make W=1 security/selinux/ Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/hashtab.c')
-rw-r--r--security/selinux/ss/hashtab.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/ss/hashtab.c b/security/selinux/ss/hashtab.c
index b8f6b3e0a921..727c3b484bd3 100644
--- a/security/selinux/ss/hashtab.c
+++ b/security/selinux/ss/hashtab.c
@@ -8,6 +8,7 @@
#include <linux/slab.h>
#include <linux/errno.h>
#include "hashtab.h"
+#include "security.h"
static struct kmem_cache *hashtab_node_cachep __ro_after_init;