The patch titled Fix WARN() for the !CONFIG_BUG case has been added to the -mm tree. Its filename is add-a-warn-macro-this-is-warn_on-printk-arguments-fix-2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: Fix WARN() for the !CONFIG_BUG case From: Arjan van de Ven <arjan@xxxxxxxxxxxxx> For the CONFIG_BUG=n case we need to provide a stub WARN() macro; do this in the same style as WARN_ON() is done. Signed-off-by: Arjan van de Ven <arjan@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/asm-generic/bug.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff -puN include/asm-generic/bug.h~add-a-warn-macro-this-is-warn_on-printk-arguments-fix-2 include/asm-generic/bug.h --- a/include/asm-generic/bug.h~add-a-warn-macro-this-is-warn_on-printk-arguments-fix-2 +++ a/include/asm-generic/bug.h @@ -77,6 +77,14 @@ extern void warn_slowpath(const char *fi unlikely(__ret_warn_on); \ }) #endif + +#ifndef WARN +#define WARN(condition, format...) ({ \ + int __ret_warn_on = !!(condition); \ + unlikely(__ret_warn_on); \ +}) +#endif + #endif #define WARN_ON_ONCE(condition) ({ \ _ Patches currently in -mm which might be from arjan@xxxxxxxxxxxxx are linux-next.patch acpi-enable-c3-power-state-on-dell-inspiron-8200.patch git-unionfs.patch add-a-warn-macro-this-is-warn_on-printk-arguments-fix-2.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html