Fix warning in kernel/audit.c, kauditd_thread
Subsystems (2)
PATCH 1/1 Fix warning in kernel/audit.c, kauditd_thread
The warning has come to my attention while compiling 2.6.16-rc4.
kauditd_thread in kernel/audit.c should be returning an int value, however, it doesn't and gcc isn't too happy about it.
Due to the endless loop in kauditd_thread we may never ever come that far to actually return a value. Adding a 'return 0;' removes the warning though.
Guess that's enough if not even too much information on such a trivial change.
Signed-off-by Stephan Peijnik <[email protected]>
---
kernel/audit.c +2 -0
@@ -300,6 +300,8 @@ static int kauditd_thread(void *dummy)remove_wait_queue (&kauditd_wait, &wait); } } + +return 0 ; } void audit_send_reply(int pid, int seq, int type, int done, int multi,
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors