Skip to contentSkip to conversation

selinux: Corrected comment to match kernel-doc comment

PATCH Superseded Souptick Joarder 2 participants 2 messages Apr 24, 2021 SELinux security module

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selinux: Corrected comment to match kernel-doc comment

Kernel test robot throws below warning ->

security/selinux/avc.c:822: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Updated the comment to align with kernel-doc comment.

---
 security/selinux/avc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/avc.c +1 -1
index ad451cf..04a886b 100644
@@ -818,7 +818,7 @@ int __init avc_add_callback(int (*callback)(u32 event), u32 events)
 	return rc;
 }
 
-/**
+/*
  * avc_update_node Update an AVC entry
  * @event : Updating event
  * @perms : Permission mask bits
Signature · 1 line
1.9.1
#1 lore raw
Quoted 18 lines · Souptick Joarder

Kernel test robot throws below warning ->

security/selinux/avc.c:822: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Updated the comment to align with kernel-doc comment.

---
 security/selinux/avc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
security/selinux/avc.c +0 -0
index ad451cf..04a886b 100644

security/selinux/avc.c int __init avc_add_callback(int (*callback)(u32 event), u32 events) · line 822

Quoted 6 lines
security/selinux/avc.c +1 -1
@@ -818,7 +818,7 @@ int __init avc_add_callback(int (*callback)(u32 event), u32 events)
 	return rc;
 }
 
-/**
+/*
  * avc_update_node Update an AVC entry

or

* avc_update_node - Update an AVC entry

would work also. :)
And leave the /**.

Mostly we want to have kernel-doc for exported (non-static) functions, but this file doesn't exactly conform to that, so the latter fix is more preferable IMO.

Quoted 3 lines
security/selinux/avc.c +0 -0
  * @event : Updating event
  * @perms : Permission mask bits
Signature · 1 line
~Randy