[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <50A43E5E.9040905@xenotime.net>
Date: Wed, 14 Nov 2012 16:59:10 -0800
From: Randy Dunlap <rdunlap@...otime.net>
To: Arnd Bergmann <arnd@...db.de>
CC: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
linux-arch@...r.kernel.org, Rafael Aquini <aquini@...hat.com>,
linux-mm@...ck.org
Subject: [PATCH 1/2] asm-generic: add __WARN() to bug.h
From: Randy Dunlap <rdunlap@...radead.org>
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 <rdunlap@...radead.org>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: linux-arch@...r.kernel.org
Cc: Rafael Aquini <aquini@...hat.com>
Cc: linux-mm@...ck.org
---
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists