summaryrefslogtreecommitdiff
path: root/security/selinux/netport.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/netport.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/netport.c')
-rw-r--r--security/selinux/netport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/netport.c b/security/selinux/netport.c
index b8bc3897891d..9ba09d11c0f5 100644
--- a/security/selinux/netport.c
+++ b/security/selinux/netport.c
@@ -73,7 +73,7 @@ static unsigned int sel_netport_hashfn(u16 pnum)
/**
* sel_netport_find - Search for a port record
* @protocol: protocol
- * @port: pnum
+ * @pnum: port
*
* Description:
* Search the network port table and return the matching record. If an entry