Skip to contentSkip to conversation

ima: fix ima_delete_rules() kernel-doc warning

PATCH In review Randy Dunlap 2 participants 2 messages Jan 2, 2023 – Jan 6, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ima: fix ima_delete_rules() kernel-doc warning

Use correct kernel-doc syntax in the function description to prevent a kernel-doc warning:

security/integrity/ima/ima_policy.c:1964: warning: expecting prototype for ima_delete_rules() called to cleanup invalid in(). Prototype was for ima_delete_rules() instead

Cc Mimi Zohar <[email protected]>
Cc Dmitry Kasatkin <[email protected]>
Cc Paul Moore <[email protected]>
Cc James Morris <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
---
 security/integrity/ima/ima_policy.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
security/integrity/ima/ima_policy.c +2 -1
diff -- a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c
@@ -1955,7 +1955,8 @@ ssize_t ima_parse_add_rule(char *rule)
 }
 
 /**
- * ima_delete_rules() called to cleanup invalid in-flight policy.
+ * ima_delete_rules() - called to cleanup invalid in-flight policy.
+ *
  * We don't need locking as we operate on the temp list, which is
  * different from the active one.  There is also only one user of
  * ima_delete_rules() at a time.
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Randy Dunlap

Use correct kernel-doc syntax in the function description to prevent a kernel-doc warning:

security/integrity/ima/ima_policy.c:1964: warning: expecting prototype for ima_delete_rules() called to cleanup invalid in(). Prototype was for ima_delete_rules() instead

Cc Mimi Zohar <[email protected]>
Cc Dmitry Kasatkin <[email protected]>
Cc Paul Moore <[email protected]>
Cc James Morris <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
Quoted 3 lines
---
 security/integrity/ima/ima_policy.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 13 lines

diff -- a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c

security/integrity/ima/ima_policy.c +2 -1
@@ -1955,7 +1955,8 @@ ssize_t ima_parse_add_rule(char *rule)
 }
 
 /**
- * ima_delete_rules() called to cleanup invalid in-flight policy.
+ * ima_delete_rules() - called to cleanup invalid in-flight policy.
+ *
  * We don't need locking as we operate on the temp list, which is
  * different from the active one.  There is also only one user of
  * ima_delete_rules() at a time.
Signature · 1 line
paul-moore.com