Skip to content

Commit

Permalink
bug.h: need linux/kernel.h for TAINT_WARN.
Browse files Browse the repository at this point in the history
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 edd63a2 ("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>
  • Loading branch information
Paul Mundt committed Jun 11, 2012
1 parent 3a9485d commit 3777808
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _ASM_GENERIC_BUG_H

#include <linux/compiler.h>
#include <linux/kernel.h>

#ifdef CONFIG_BUG

Expand Down

0 comments on commit 3777808

Please sign in to comment.