Skip to content

Commit

Permalink
sh: BUGFLAG_WARNING needs GENERIC_BUG.
Browse files Browse the repository at this point in the history
Move the HAVE_ARCH_BUG/HAVE_ARCH_WARN_ON definitions underneath
CONFIG_GENERIC_BUG. This is needed for BUGFLAG_WARNING usage.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent 5a4a5bd commit e1cd93e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-sh/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define TRAPA_BUG_OPCODE 0xc33e /* trapa #0x3e */

#ifdef CONFIG_BUG
#ifdef CONFIG_GENERIC_BUG
#define HAVE_ARCH_BUG
#define HAVE_ARCH_WARN_ON

Expand Down Expand Up @@ -77,7 +77,7 @@ struct pt_regs;
/* arch/sh/kernel/traps.c */
void handle_BUG(struct pt_regs *);

#endif /* CONFIG_BUG */
#endif /* CONFIG_GENERIC_BUG */

#include <asm-generic/bug.h>

Expand Down

0 comments on commit e1cd93e

Please sign in to comment.