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) <rost...@goodmis.org>
:::::: CC: Steven Rostedt (VMware) <rost...@goodmis.org>

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

Attachment: .config.gz
Description: application/gzip

Reply via email to