selinux: fix all of the W=1 build warnings
authorPaul Moore <paul@paul-moore.com>
Thu, 19 Nov 2020 02:15:08 +0000 (21:15 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 13 Oct 2021 20:31:51 +0000 (16:31 -0400)
commite9fd7292935906c09824a10bc27b48fd3992c366
treeecae301d4bd3d9aadcd182c3f9358dffc9177464
parent1d1e1ded13568be81a0e19d228e310a48997bec8
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>
security/selinux/avc.c
security/selinux/netlabel.c
security/selinux/netport.c
security/selinux/ss/hashtab.c
security/selinux/ss/mls.c
security/selinux/ss/services.c