public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime•net>
To: Fengguang Wu <fengguang.wu@intel•com>
Cc: Stephen Rothwell <sfr@canb•auug.org.au>,
	linux-next@vger•kernel.org, LKML <linux-kernel@vger•kernel.org>
Subject: Re: error: implicit declarations of BUG/BUG_ON/WARN_ON/WARN_ON_ONCE
Date: Fri, 15 Jun 2012 09:27:13 -0700	[thread overview]
Message-ID: <4FDB6261.2030400@xenotime.net> (raw)
In-Reply-To: <20120615065231.GA12272@localhost>

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

  reply	other threads:[~2012-06-15 16:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15  4:33 linux-next: Tree for Jun 15 Stephen Rothwell
2012-06-15  6:52 ` error: implicit declarations of BUG/BUG_ON/WARN_ON/WARN_ON_ONCE Fengguang Wu
2012-06-15 16:27   ` Randy Dunlap [this message]
2012-06-18 16:54     ` Randy Dunlap
2012-06-22  7:13       ` Fengguang Wu
2012-06-25  2:53         ` Paul Mundt
2012-06-25  4:20           ` Fengguang Wu
2012-06-25  4:23             ` Randy Dunlap
2012-06-25  4:38               ` Fengguang Wu
2012-06-25  4:39                 ` Randy Dunlap
2012-06-25  4:55                   ` Fengguang Wu
2012-06-25  5:05                     ` Randy Dunlap
2012-06-25  4:54               ` Paul Mundt
2012-06-15 19:19 ` [PATCH -next] pstore: fix printk format warning in ram.c Randy Dunlap
2012-06-15 19:32   ` Kees Cook
2012-06-22  0:04   ` Randy Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FDB6261.2030400@xenotime.net \
    --to=rdunlap@xenotime$(echo .)net \
    --cc=fengguang.wu@intel$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox