Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752999Ab2FYEim (ORCPT ); Mon, 25 Jun 2012 00:38:42 -0400 Received: from mga03.intel.com ([143.182.124.21]:4950 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752507Ab2FYEik (ORCPT ); Mon, 25 Jun 2012 00:38:40 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="115629610" Date: Mon, 25 Jun 2012 12:38:36 +0800 From: Fengguang Wu To: Randy Dunlap Cc: Paul Mundt , Stephen Rothwell , linux-next@vger.kernel.org, LKML , Arnd Bergmann Subject: Re: error: implicit declarations of BUG/BUG_ON/WARN_ON/WARN_ON_ONCE Message-ID: <20120625043836.GA11937@localhost> References: <20120615143303.3b88edcbc3efc7b1bf81839b@canb.auug.org.au> <20120615065231.GA12272@localhost> <4FDB6261.2030400@xenotime.net> <4FDF5D50.7030505@xenotime.net> <20120622071305.GA15102@localhost> <20120625025301.GB9317@linux-sh.org> <20120625042017.GA11705@localhost> <4FE7E7CA.2030706@xenotime.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FE7E7CA.2030706@xenotime.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2126 Lines: 75 On Sun, Jun 24, 2012 at 09:23:38PM -0700, Randy Dunlap wrote: > On 06/24/2012 09:20 PM, Fengguang Wu wrote: > > > Hi Paul, > > > > The patch builds fine, thank you! > > > > Tested-by: Fengguang Wu > > Acked-by: Randy Dunlap > > You clearly have better build hardware than I do (a simple Core i5 > laptop). ;) Thanks, and it's a surprise that you caught so many bugs with a laptop! ;) Thanks, Fengguang > >> I'm really starting to loathe this header. This should take care of it: > >> > >> --- > >> > >> diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h > >> index 506ec19..7d10f96 100644 > >> --- a/include/asm-generic/bug.h > >> +++ b/include/asm-generic/bug.h > >> @@ -3,10 +3,18 @@ > >> > >> #include > >> > >> +#ifdef CONFIG_GENERIC_BUG > >> +#define BUGFLAG_WARNING (1 << 0) > >> +#define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8)) > >> +#define BUG_GET_TAINT(bug) ((bug)->flags >> 8) > >> +#endif > >> + > >> +#ifndef __ASSEMBLY__ > >> +#include > >> + > >> #ifdef CONFIG_BUG > >> > >> #ifdef CONFIG_GENERIC_BUG > >> -#ifndef __ASSEMBLY__ > >> struct bug_entry { > >> #ifndef CONFIG_GENERIC_BUG_RELATIVE_POINTERS > >> unsigned long bug_addr; > >> @@ -23,17 +31,8 @@ struct bug_entry { > >> #endif > >> unsigned short flags; > >> }; > >> -#endif /* __ASSEMBLY__ */ > >> - > >> -#define BUGFLAG_WARNING (1 << 0) > >> -#define BUGFLAG_TAINT(taint) (BUGFLAG_WARNING | ((taint) << 8)) > >> -#define BUG_GET_TAINT(bug) ((bug)->flags >> 8) > >> - > >> #endif /* CONFIG_GENERIC_BUG */ > >> > >> -#ifndef __ASSEMBLY__ > >> -#include > >> - > >> /* > >> * Don't use BUG() or BUG_ON() unless there's really no way out; one > >> * example might be detecting data structure corruption in the middle > > > > -- > ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/