bug.h: need linux/kernel.h for TAINT_WARN.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 11 Jun 2012 05:29:58 +0000 (14:29 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 Jun 2012 05:29:58 +0000 (14:29 +0900)
asm-generic/bug.h uses taint flags that are only defined in
linux/kernel.h, resulting in build failures on platforms that
don't include linux/kernel.h some other way:

        arch/sh/include/asm/thread_info.h:172:2: error: 'TAINT_WARN' undeclared (first use in this function)

Caused by commit edd63a2763bd ("set_restore_sigmask() is never called
without SIGPENDING (and never should be)").

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-generic/bug.h

index 2520a6e241dc0967ef7f8e096436a19a6042e36a..9f02005f217a6fcaa8726f4dba2ad4e7e2076b92 100644 (file)
@@ -2,6 +2,7 @@
 #define _ASM_GENERIC_BUG_H
 
 #include <linux/compiler.h>
+#include <linux/kernel.h>
 
 #ifdef CONFIG_BUG