From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992561Ab2KOB2e (ORCPT ); Wed, 14 Nov 2012 20:28:34 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:43527 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992549Ab2KOB2b (ORCPT ); Wed, 14 Nov 2012 20:28:31 -0500 Date: Wed, 14 Nov 2012 17:28:29 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Randy Dunlap cc: Arnd Bergmann , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , linux-arch@vger.kernel.org, Rafael Aquini , linux-mm@kvack.org Subject: Re: [PATCH 1/2] asm-generic: add __WARN() to bug.h In-Reply-To: <50A43E5E.9040905@xenotime.net> Message-ID: References: <20121114163042.64f0c0495663331b9c2d60d6@canb.auug.org.au> <50A43E5E.9040905@xenotime.net> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Nov 2012, Randy Dunlap wrote: > --- 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 __WARN() isn't supposed to be used by generic code, though. The mm/balloon_compaction.c error should be resolved by mm-introduce-a-common-interface-for-balloon-pages-mobility-fix-fix-fix.patch added to -mm today. It converts the __WARN() there into WARN_ON(1) which is defined appropriately for CONFIG_BUG=n. From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rientjes Subject: Re: [PATCH 1/2] asm-generic: add __WARN() to bug.h Date: Wed, 14 Nov 2012 17:28:29 -0800 (PST) Message-ID: References: <20121114163042.64f0c0495663331b9c2d60d6@canb.auug.org.au> <50A43E5E.9040905@xenotime.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <50A43E5E.9040905@xenotime.net> Sender: owner-linux-mm@kvack.org To: Randy Dunlap Cc: Arnd Bergmann , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , linux-arch@vger.kernel.org, Rafael Aquini , linux-mm@kvack.org List-Id: linux-next.vger.kernel.org On Wed, 14 Nov 2012, Randy Dunlap wrote: > --- 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 __WARN() isn't supposed to be used by generic code, though. The mm/balloon_compaction.c error should be resolved by mm-introduce-a-common-interface-for-balloon-pages-mobility-fix-fix-fix.patch added to -mm today. It converts the __WARN() there into WARN_ON(1) which is defined appropriately for CONFIG_BUG=n. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org