CC: [email protected]
CC: [email protected]
TO: Julian Braha <[email protected]>
CC: Andrew Morton <[email protected]>
CC: Linux Memory Management List <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   f8fbb47c6e86c0b75f8df864db702c3e3f757361
commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on 
ARCH_WANT_FRAME_POINTERS
date:   4 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 4 months ago
config: csky-randconfig-c004-20210812 (attached as .config)
compiler: csky-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross 
ARCH=csky 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10,
                    from include/linux/list.h:9,
                    from include/linux/module.h:12,
                    from drivers/net/wireless/intel/iwlwifi/iwl-devtrace.c:13:
   drivers/net/wireless/intel/iwlwifi/./iwl-devtrace-msg.h: In function 
'trace_event_raw_event_iwlwifi_dbg':
   include/linux/compiler.h:61:16: warning: function 
'trace_event_raw_event_iwlwifi_dbg' might be a candidate for 'gnu_printf' 
format attribute [-Wsuggest-attribute=format]
      61 |  static struct ftrace_branch_data  \
         |                ^~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:69: note: in expansion of macro 
'__trace_if_value'
      58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : 
__trace_if_value(cond))
         |                                                                     
^~~~~~~~~~~~~~~~
   include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
      56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) 
) )
         |                            ^~~~~~~~~~~~~~
   include/trace/trace_events.h:701:2: note: in expansion of macro 'if'
     701 |  if (!entry)       \
         |  ^~
   include/trace/trace_events.h:75:2: note: in expansion of macro 
'DECLARE_EVENT_CLASS'
      75 |  DECLARE_EVENT_CLASS(name,          \
         |  ^~~~~~~~~~~~~~~~~~~
   drivers/net/wireless/intel/iwlwifi/./iwl-devtrace-msg.h:56:1: note: in 
expansion of macro 'TRACE_EVENT'
      56 | TRACE_EVENT(iwlwifi_dbg,
         | ^~~~~~~~~~~
   drivers/net/wireless/intel/iwlwifi/./iwl-devtrace-msg.h: In function 
'perf_trace_iwlwifi_dbg':
>> include/linux/compiler.h:61:16: warning: function 'perf_trace_iwlwifi_dbg' 
>> might be a candidate for 'gnu_printf' format attribute 
>> [-Wsuggest-attribute=format]
      61 |  static struct ftrace_branch_data  \
         |                ^~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:69: note: in expansion of macro 
'__trace_if_value'
      58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : 
__trace_if_value(cond))
         |                                                                     
^~~~~~~~~~~~~~~~
   include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
      56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) 
) )
         |                            ^~~~~~~~~~~~~~
   include/trace/perf.h:59:2: note: in expansion of macro 'if'
      59 |  if (!entry)       \
         |  ^~
   include/trace/trace_events.h:75:2: note: in expansion of macro 
'DECLARE_EVENT_CLASS'
      75 |  DECLARE_EVENT_CLASS(name,          \
         |  ^~~~~~~~~~~~~~~~~~~
   drivers/net/wireless/intel/iwlwifi/./iwl-devtrace-msg.h:56:1: note: in 
expansion of macro 'TRACE_EVENT'
      56 | TRACE_EVENT(iwlwifi_dbg,
         | ^~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for LOCKDEP
   Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS 
|| PPC || S390 || MICROBLAZE || ARM || ARC || X86)
   Selected by
   - PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
   - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT


vim +61 include/linux/compiler.h

a15fd609ad53a6 Linus Torvalds 2019-03-20  59  
a15fd609ad53a6 Linus Torvalds 2019-03-20  60  #define __trace_if_value(cond) ({ 
                \
2bcd521a684cc9 Steven Rostedt 2008-11-21 @61    static struct 
ftrace_branch_data                \
e04462fb82f8dd Miguel Ojeda   2018-09-03  62            __aligned(4)            
                \
33def8498fdde1 Joe Perches    2020-10-21  63            
__section("_ftrace_branch")             \
a15fd609ad53a6 Linus Torvalds 2019-03-20  64            __if_trace = {          
                \
2bcd521a684cc9 Steven Rostedt 2008-11-21  65                    .func = 
__func__,               \
2bcd521a684cc9 Steven Rostedt 2008-11-21  66                    .file = 
__FILE__,               \
2bcd521a684cc9 Steven Rostedt 2008-11-21  67                    .line = 
__LINE__,               \
2bcd521a684cc9 Steven Rostedt 2008-11-21  68            };                      
                \
a15fd609ad53a6 Linus Torvalds 2019-03-20  69    (cond) ?                        
                \
a15fd609ad53a6 Linus Torvalds 2019-03-20  70            
(__if_trace.miss_hit[1]++,1) :          \
a15fd609ad53a6 Linus Torvalds 2019-03-20  71            
(__if_trace.miss_hit[0]++,0);           \
a15fd609ad53a6 Linus Torvalds 2019-03-20  72  })
a15fd609ad53a6 Linus Torvalds 2019-03-20  73  

:::::: The code at line 61 was first introduced by commit
:::::: 2bcd521a684cc94befbe2ce7d5b613c841b0d304 trace: profile all if 
conditionals

:::::: TO: Steven Rostedt <[email protected]>
:::::: CC: Ingo Molnar <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to