ima: fix ima_delete_rules() kernel-doc warning
Subsystems (4)
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
Signed-off-by Randy Dunlap <[email protected]>
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
@@ -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.
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 forima_delete_rules()called to cleanup invalidin(). Prototype was forima_delete_rules()insteadSigned-off-by Randy Dunlap <[email protected]>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(-)
Reviewed-by Paul Moore <[email protected]>
Quoted 13 lines
diff --
a/security/integrity/ima/ima_policy.cb/security/integrity/ima/ima_policy.csecurity/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