mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Ian Abbott <abbotti@mev.co.uk>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	linux-arch@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Michal Nazarewicz <mina86@mina86.com>,
	Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com>,
	Borislav Petkov <bp@suse.de>,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Johannes Berg <johannes.berg@intel.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Alexander Potapenko <glider@google.com>,
	Ian Abbott <abbotti@mev.co.uk>
Subject: Re: [PATCH 1/1] bug: fix problem including <linux.bug.h> from linux/kernel.h
Date: Thu, 25 May 2017 10:25:28 +0800	[thread overview]
Message-ID: <201705251011.3EACWRIq%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170524132107.6919-2-abbotti@mev.co.uk>

[-- Attachment #1: Type: text/plain, Size: 8414 bytes --]

Hi Ian,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.12-rc2 next-20170524]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Ian-Abbott/bug-fix-problem-including-linux-bug-h-from-linux-kernel-h/20170525-081427
config: i386-randconfig-c0-05250844 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/bug.h:81:0,
                    from include/linux/bug.h:4,
                    from include/linux/jump_label.h:184,
                    from arch/x86//kernel/jump_label.c:7:
   include/asm-generic/bug.h:101:35: warning: 'struct pt_regs' declared inside parameter list
         struct pt_regs *regs, struct warn_args *args);
                                      ^
   include/asm-generic/bug.h:101:35: warning: its scope is only this definition or declaration, which is probably not what you want
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/jump_label.h:79,
                    from arch/x86//kernel/jump_label.c:7:
   include/linux/jump_label.h: In function 'static_key_slow_inc':
>> include/linux/compiler.h:127:18: error: implicit declaration of function 'printk' [-Werror=implicit-function-declaration]
       static struct ftrace_likely_data  \
                     ^
   include/linux/compiler.h:150:24: note: in expansion of macro '__branch_check__'
    #  define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
                           ^
   include/asm-generic/bug.h:115:6: note: in expansion of macro 'unlikely'
     if (unlikely(__ret_warn_on))     \
         ^
   include/linux/jump_label.h:84:32: note: in expansion of macro 'WARN'
    #define STATIC_KEY_CHECK_USE() WARN(!static_key_initialized,        \
                                   ^
   include/linux/jump_label.h:212:2: note: in expansion of macro 'STATIC_KEY_CHECK_USE'
     STATIC_KEY_CHECK_USE();
     ^
   In file included from include/linux/bug.h:4:0,
                    from include/linux/jump_label.h:184,
                    from arch/x86//kernel/jump_label.c:7:
   include/asm-generic/bug.h:91:32: error: 'TAINT_WARN' undeclared (first use in this function)
    #define __WARN()  __WARN_TAINT(TAINT_WARN)
                                   ^
   arch/x86/include/asm/bug.h:46:10: note: in definition of macro '_BUG_FLAGS'
        "i" (flags),     \
             ^
   include/asm-generic/bug.h:60:30: note: in expansion of macro '__WARN_FLAGS'
    #define __WARN_TAINT(taint)  __WARN_FLAGS(BUGFLAG_TAINT(taint))
                                 ^
   include/asm-generic/bug.h:60:43: note: in expansion of macro 'BUGFLAG_TAINT'
    #define __WARN_TAINT(taint)  __WARN_FLAGS(BUGFLAG_TAINT(taint))
                                              ^
   include/asm-generic/bug.h:91:19: note: in expansion of macro '__WARN_TAINT'
    #define __WARN()  __WARN_TAINT(TAINT_WARN)
                      ^
   include/asm-generic/bug.h:92:49: note: in expansion of macro '__WARN'
    #define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0)
                                                    ^
   include/asm-generic/bug.h:116:3: note: in expansion of macro '__WARN_printf'
      __WARN_printf(format);     \
      ^
   include/linux/jump_label.h:84:32: note: in expansion of macro 'WARN'
    #define STATIC_KEY_CHECK_USE() WARN(!static_key_initialized,        \
                                   ^
   include/linux/jump_label.h:212:2: note: in expansion of macro 'STATIC_KEY_CHECK_USE'
     STATIC_KEY_CHECK_USE();
     ^
   include/asm-generic/bug.h:91:32: note: each undeclared identifier is reported only once for each function it appears in
    #define __WARN()  __WARN_TAINT(TAINT_WARN)
                                   ^
   arch/x86/include/asm/bug.h:46:10: note: in definition of macro '_BUG_FLAGS'
        "i" (flags),     \
             ^
   include/asm-generic/bug.h:60:30: note: in expansion of macro '__WARN_FLAGS'
    #define __WARN_TAINT(taint)  __WARN_FLAGS(BUGFLAG_TAINT(taint))
                                 ^
   include/asm-generic/bug.h:60:43: note: in expansion of macro 'BUGFLAG_TAINT'
    #define __WARN_TAINT(taint)  __WARN_FLAGS(BUGFLAG_TAINT(taint))
                                              ^
   include/asm-generic/bug.h:91:19: note: in expansion of macro '__WARN_TAINT'
    #define __WARN()  __WARN_TAINT(TAINT_WARN)
                      ^
   include/asm-generic/bug.h:92:49: note: in expansion of macro '__WARN'
    #define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0)
                                                    ^
   include/asm-generic/bug.h:116:3: note: in expansion of macro '__WARN_printf'
      __WARN_printf(format);     \
      ^
   include/linux/jump_label.h:84:32: note: in expansion of macro 'WARN'
    #define STATIC_KEY_CHECK_USE() WARN(!static_key_initialized,        \
                                   ^
   include/linux/jump_label.h:212:2: note: in expansion of macro 'STATIC_KEY_CHECK_USE'
     STATIC_KEY_CHECK_USE();
     ^
   include/linux/jump_label.h: In function 'static_key_slow_dec':
   include/asm-generic/bug.h:91:32: error: 'TAINT_WARN' undeclared (first use in this function)
    #define __WARN()  __WARN_TAINT(TAINT_WARN)
                                   ^
   arch/x86/include/asm/bug.h:46:10: note: in definition of macro '_BUG_FLAGS'
        "i" (flags),     \
             ^
   include/asm-generic/bug.h:60:30: note: in expansion of macro '__WARN_FLAGS'
    #define __WARN_TAINT(taint)  __WARN_FLAGS(BUGFLAG_TAINT(taint))
                                 ^
   include/asm-generic/bug.h:60:43: note: in expansion of macro 'BUGFLAG_TAINT'
    #define __WARN_TAINT(taint)  __WARN_FLAGS(BUGFLAG_TAINT(taint))
                                              ^
   include/asm-generic/bug.h:91:19: note: in expansion of macro '__WARN_TAINT'
    #define __WARN()  __WARN_TAINT(TAINT_WARN)
                      ^
   include/asm-generic/bug.h:92:49: note: in expansion of macro '__WARN'
    #define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0)
                                                    ^
   include/asm-generic/bug.h:116:3: note: in expansion of macro '__WARN_printf'
      __WARN_printf(format);     \
      ^
   include/linux/jump_label.h:84:32: note: in expansion of macro 'WARN'
    #define STATIC_KEY_CHECK_USE() WARN(!static_key_initialized,        \
                                   ^
   include/linux/jump_label.h:218:2: note: in expansion of macro 'STATIC_KEY_CHECK_USE'
     STATIC_KEY_CHECK_USE();
     ^
   include/linux/jump_label.h: In function 'static_key_enable':

vim +/printk +127 include/linux/compiler.h

1f0d69a9 Steven Rostedt          2008-11-12  121  
1f0d69a9 Steven Rostedt          2008-11-12  122  #define likely_notrace(x)	__builtin_expect(!!(x), 1)
1f0d69a9 Steven Rostedt          2008-11-12  123  #define unlikely_notrace(x)	__builtin_expect(!!(x), 0)
1f0d69a9 Steven Rostedt          2008-11-12  124  
d45ae1f7 Steven Rostedt (VMware  2017-01-17  125) #define __branch_check__(x, expect, is_constant) ({			\
1f0d69a9 Steven Rostedt          2008-11-12  126  			int ______r;					\
134e6a03 Steven Rostedt (VMware  2017-01-19 @127) 			static struct ftrace_likely_data		\
1f0d69a9 Steven Rostedt          2008-11-12  128  				__attribute__((__aligned__(4)))		\
45b79749 Steven Rostedt          2008-11-21  129  				__attribute__((section("_ftrace_annotated_branch"))) \
1f0d69a9 Steven Rostedt          2008-11-12  130  				______f = {				\

:::::: The code at line 127 was first introduced by commit
:::::: 134e6a034cb004ed5acd3048792de70ced1c6cf5 tracing: Show number of constants profiled in likely profiler

:::::: TO: Steven Rostedt (VMware) <rostedt@goodmis.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@goodmis.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26228 bytes --]

  parent reply	other threads:[~2017-05-25  2:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-24 13:21 [PATCH 0/1] " Ian Abbott
2017-05-24 13:21 ` [PATCH 1/1] " Ian Abbott
2017-05-24 13:37   ` Rasmus Villemoes
2017-05-24 15:55     ` Ian Abbott
2017-05-24 16:06   ` [PATCH v2] bug: fix problem including <linux/bug.h> " Ian Abbott
2017-05-24 23:11     ` Ian Abbott
2017-05-24 23:26     ` kbuild test robot
2017-05-24 23:53     ` kbuild test robot
2017-05-25  2:25   ` kbuild test robot [this message]
2017-05-25  2:47   ` [PATCH 1/1] bug: fix problem including <linux.bug.h> " kbuild test robot

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=201705251011.3EACWRIq%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=abbotti@mev.co.uk \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=bp@suse.de \
    --cc=glider@google.com \
    --cc=hidehiro.kawai.ez@hitachi.com \
    --cc=johannes.berg@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=mina86@mina86.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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

all inboxes | Powered by JetHome®