bug.h: need linux/kernel.h for TAINT_WARN.

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 edd63a2763 ("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>
This commit is contained in:
Paul Mundt 2012-06-11 14:29:58 +09:00
parent 3a9485da96
commit 3777808873

View File

@ -2,6 +2,7 @@
#define _ASM_GENERIC_BUG_H #define _ASM_GENERIC_BUG_H
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/kernel.h>
#ifdef CONFIG_BUG #ifdef CONFIG_BUG