Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932454Ab2FOQ1d (ORCPT ); Fri, 15 Jun 2012 12:27:33 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:42458 "HELO oproxy7-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932369Ab2FOQ1b (ORCPT ); Fri, 15 Jun 2012 12:27:31 -0400 Message-ID: <4FDB6261.2030400@xenotime.net> Date: Fri, 15 Jun 2012 09:27:13 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110323 Thunderbird/3.1.9 MIME-Version: 1.0 To: Fengguang Wu CC: Stephen Rothwell , linux-next@vger.kernel.org, LKML Subject: Re: error: implicit declarations of BUG/BUG_ON/WARN_ON/WARN_ON_ONCE References: <20120615143303.3b88edcbc3efc7b1bf81839b@canb.auug.org.au> <20120615065231.GA12272@localhost> In-Reply-To: <20120615065231.GA12272@localhost> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3746 Lines: 68 On 06/14/2012 11:52 PM, Fengguang Wu wrote: > On Fri, Jun 15, 2012 at 02:33:03PM +1000, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20120614: >> >> My fixes tree contains: >> fix bug.h's inclusion of kernel.h > > I got these errors with the attached randconfig. Not sure which change > triggers them. Ditto. When CONFIG_BUG is not enabled. > CC arch/x86/kernel/asm-offsets.s > In file included from /c/kernel-tests/mm/arch/x86/include/asm/atomic.h:6:0, > from /c/kernel-tests/mm/include/linux/atomic.h:4, > from /c/kernel-tests/mm/include/linux/crypto.h:20, > from /c/kernel-tests/mm/arch/x86/kernel/asm-offsets.c:8: > /c/kernel-tests/mm/arch/x86/include/asm/processor.h: In function ?get_aperfmperf?: > /c/kernel-tests/mm/arch/x86/include/asm/processor.h:937:2: error: implicit declaration of function ?WARN_ON_ONCE? [-Werror=implicit-function-declaration] > In file included from /c/kernel-tests/mm/include/linux/thread_info.h:54:0, > from /c/kernel-tests/mm/include/linux/preempt.h:9, > from /c/kernel-tests/mm/include/linux/spinlock.h:50, > from /c/kernel-tests/mm/include/linux/mmzone.h:7, > from /c/kernel-tests/mm/include/linux/gfp.h:4, > from /c/kernel-tests/mm/include/linux/slab.h:12, > from /c/kernel-tests/mm/include/linux/crypto.h:24, > from /c/kernel-tests/mm/arch/x86/kernel/asm-offsets.c:8: > /c/kernel-tests/mm/arch/x86/include/asm/thread_info.h: In function ?set_restore_sigmask?: > /c/kernel-tests/mm/arch/x86/include/asm/thread_info.h:250:2: error: implicit declaration of function ?WARN_ON? [-Werror=implicit-function-declaration] > In file included from /c/kernel-tests/mm/include/linux/mmzone.h:717:0, > from /c/kernel-tests/mm/include/linux/gfp.h:4, > from /c/kernel-tests/mm/include/linux/slab.h:12, > from /c/kernel-tests/mm/include/linux/crypto.h:24, > from /c/kernel-tests/mm/arch/x86/kernel/asm-offsets.c:8: > /c/kernel-tests/mm/include/linux/memory_hotplug.h: In function ?generic_alloc_nodedata?: > /c/kernel-tests/mm/include/linux/memory_hotplug.h:152:2: error: implicit declaration of function ?BUG? [-Werror=implicit-function-declaration] > In file included from /c/kernel-tests/mm/arch/x86/include/asm/apic.h:12:0, > from /c/kernel-tests/mm/arch/x86/include/asm/smp.h:13, > from /c/kernel-tests/mm/include/linux/smp.h:38, > from /c/kernel-tests/mm/include/linux/topology.h:33, > from /c/kernel-tests/mm/include/linux/gfp.h:7, > from /c/kernel-tests/mm/include/linux/slab.h:12, > from /c/kernel-tests/mm/include/linux/crypto.h:24, > from /c/kernel-tests/mm/arch/x86/kernel/asm-offsets.c:8: > /c/kernel-tests/mm/arch/x86/include/asm/fixmap.h: In function ?virt_to_fix?: > /c/kernel-tests/mm/arch/x86/include/asm/fixmap.h:220:2: error: implicit declaration of function ?BUG_ON? [-Werror=implicit-function-declaration] > HOSTLD scripts/genksyms/genksyms > cc1: some warnings being treated as errors > make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1 > make[1]: *** [prepare0] Error 2 > make[1]: *** Waiting for unfinished jobs.... > > Thanks, > Fengguang -- ~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/