From: Randy Dunlap <[email protected]> Add __WARN() macro for the case of CONFIG_BUG is not enabled. This fixes a build error in mm/balloon_compaction.c.
Signed-off-by: Randy Dunlap <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: [email protected] Cc: Rafael Aquini <[email protected]> Cc: [email protected] --- include/asm-generic/bug.h | 4 ++++ 1 file changed, 4 insertions(+) --- linux-next-20121114.orig/include/asm-generic/bug.h +++ linux-next-20121114/include/asm-generic/bug.h @@ -129,6 +129,10 @@ extern void warn_slowpath_null(const cha }) #endif +#ifndef __WARN +#define __WARN() do {} while (0) +#endif + #define WARN_TAINT(condition, taint, format...) WARN_ON(condition) #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

