From: kernel test robot <lkp@intel.com>
To: Johannes Berg <johannes.berg@intel.com>
Cc: kbuild-all@lists.01.org,
Johannes Berg <johannes@sipsolutions.net>,
Kalle Valo <kvalo@kernel.org>,
linux-wireless@vger.kernel.org
Subject: [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: Wed, 25 May 2022 00:54:59 +0800 [thread overview]
Message-ID: <202205250015.t5c8iOSm-lkp@intel.com> (raw)
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@intel.com/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@intel.com>
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@sipsolutions.net>
:::::: CC: John W. Linville <linville@tuxdriver.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-05-24 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202205250015.t5c8iOSm-lkp@intel.com \
--to=lkp@intel.com \
--cc=johannes.berg@intel.com \
--cc=johannes@sipsolutions.net \
--cc=kbuild-all@lists.01.org \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.