Skip to contentSkip to conversation

Fix warning in kernel/audit.c, kauditd_thread

PATCH New Stephan Peijnik 1 participant 1 message Feb 20, 2006

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

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.

---

kernel/audit.c +2 -0
index 0a813d2..7e2f232 100644
@@ -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