]> err.no Git - linux-2.6/commit
[PATCH] kauditd_thread warning fix
authorAndrew Morton <akpm@osdl.org>
Fri, 6 Oct 2006 07:43:48 +0000 (00:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Oct 2006 15:53:39 +0000 (08:53 -0700)
commit4899b8b16b302299cc91289f7b5bac295e9ab387
treee9bfd4f3a44f6a49e60f1b8930a015c6772524ef
parentd195412c35fe777811bd58ad43fba3aacc67e15c
[PATCH] kauditd_thread warning fix

Squash this warning:

  kernel/audit.c: In function 'kauditd_thread':
  kernel/audit.c:367: warning: no return statement in function returning non-void

We might as test kthread_should_stop(), although it's not very pointful at
present.

The code which starts this thread looks racy - the kernel could start multiple
threads.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/audit.c