Search Linux Wireless

[wireless-next:mld 8/8] net/mac80211/./trace.h:21:25: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git mld
head:   3a74f2e20dace2e2c0cad079226b9107862271b5
commit: 3a74f2e20dace2e2c0cad079226b9107862271b5 [8/8] mac80211: split bss_info_changed method
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220525/202205250015.t5c8iOSm-lkp@xxxxxxxxx/config)
compiler: arceb-elf-gcc (GCC) 11.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/wireless/wireless-next.git/commit/?id=3a74f2e20dace2e2c0cad079226b9107862271b5
        git remote add wireless-next https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git
        git fetch --no-tags wireless-next mld
        git checkout 3a74f2e20dace2e2c0cad079226b9107862271b5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash net/mac80211/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from include/trace/define_trace.h:102,
                    from net/mac80211/trace.h:2944,
                    from net/mac80211/trace.c:11:
   net/mac80211/./trace.h: In function 'trace_raw_output_drv_vif_cfg_changed':
>> net/mac80211/./trace.h:21:25: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
      21 | #define LOCAL_PR_FMT    "%s"
         |                         ^~~~
   include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     203 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
      45 |                              PARAMS(print));                   \
         |                              ^~~~~~
   net/mac80211/./trace.h:393:1: note: in expansion of macro 'TRACE_EVENT'
     393 | TRACE_EVENT(drv_vif_cfg_changed,
         | ^~~~~~~~~~~
   net/mac80211/./trace.h:440:9: note: in expansion of macro 'TP_printk'
     440 |         TP_printk(
         |         ^~~~~~~~~
   net/mac80211/./trace.h:441:17: note: in expansion of macro 'LOCAL_PR_FMT'
     441 |                 LOCAL_PR_FMT  VIF_PR_FMT " changed:%#x",
         |                 ^~~~~~~~~~~~
   net/mac80211/./trace.h: In function 'trace_raw_output_drv_link_info_changed':
   net/mac80211/./trace.h:21:25: warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
      21 | #define LOCAL_PR_FMT    "%s"
         |                         ^~~~
   include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
     203 |         trace_event_printf(iter, print);                                \
         |                                  ^~~~~
   include/trace/trace_events.h:45:30: note: in expansion of macro 'PARAMS'
      45 |                              PARAMS(print));                   \
         |                              ^~~~~~
   net/mac80211/./trace.h:446:1: note: in expansion of macro 'TRACE_EVENT'
     446 | TRACE_EVENT(drv_link_info_changed,
         | ^~~~~~~~~~~
   net/mac80211/./trace.h:514:9: note: in expansion of macro 'TP_printk'
     514 |         TP_printk(
         |         ^~~~~~~~~
   net/mac80211/./trace.h:515:17: note: in expansion of macro 'LOCAL_PR_FMT'
     515 |                 LOCAL_PR_FMT  VIF_PR_FMT " link_id:%d, changed:%#x",
         |                 ^~~~~~~~~~~~


vim +21 net/mac80211/./trace.h

0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07  17  
0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07  18  #define MAXNAME		32
0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07  19  #define LOCAL_ENTRY	__array(char, wiphy_name, 32)
0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07  20  #define LOCAL_ASSIGN	strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)
0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07 @21  #define LOCAL_PR_FMT	"%s"
0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07  22  #define LOCAL_PR_ARG	__entry->wiphy_name
0a2b8bb24d4eb67 net/mac80211/driver-trace.h Johannes Berg 2009-07-07  23  

:::::: The code at line 21 was first introduced by commit
:::::: 0a2b8bb24d4eb67788edd71d1ef8aa86c2e17e0f mac80211: driver operation debugging

:::::: TO: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
:::::: CC: John W. Linville <linville@xxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux