ima: fix ima_delete_rules() kernel-doc warning
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 2 Jan 2023 20:45:25 +0000 (12:45 -0800)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 18 Jan 2023 18:35:40 +0000 (13:35 -0500)
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

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_policy.c

index 6a68ec2..a8b9a13 100644 (file)
@@ -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.