* [povik:asahi-6.2-rc3-7_dp-altmode-wip 5/6] drivers/usb/typec/mux.c:422:41: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int'
@ 2023-02-12 16:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-12 16:49 UTC (permalink / raw)
To: Martin Povišer; +Cc: oe-kbuild-all
tree: https://github.com/povik/linux asahi-6.2-rc3-7_dp-altmode-wip
head: 72e7196879b629343123a0459d858ef161061600
commit: 040e50c16296093a0a739743387b95e51beedf55 [5/6] WIP: typec/tipd/altmode/displayport: debugging
config: sparc64-randconfig-r015-20230212 (https://download.01.org/0day-ci/archive/20230213/202302130004.KZeiAyAB-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.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://github.com/povik/linux/commit/040e50c16296093a0a739743387b95e51beedf55
git remote add povik https://github.com/povik/linux
git fetch --no-tags povik asahi-6.2-rc3-7_dp-altmode-wip
git checkout 040e50c16296093a0a739743387b95e51beedf55
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/usb/typec/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302130004.KZeiAyAB-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from drivers/usb/typec/mux.c:10:
drivers/usb/typec/mux.c: In function 'typec_mux_set':
>> drivers/usb/typec/mux.c:422:41: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
422 | dev_warn(&mux_dev->dev, "%s: 0x%02x\n", __func__, state->mode);
| ^~~~~~~~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:146:61: note: in expansion of macro 'dev_fmt'
146 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/usb/typec/mux.c:422:17: note: in expansion of macro 'dev_warn'
422 | dev_warn(&mux_dev->dev, "%s: 0x%02x\n", __func__, state->mode);
| ^~~~~~~~
drivers/usb/typec/mux.c:422:51: note: format string is defined here
422 | dev_warn(&mux_dev->dev, "%s: 0x%02x\n", __func__, state->mode);
| ~~~^
| |
| unsigned int
| %02lx
--
>> drivers/usb/typec/tipd/displayport.c:210:5: warning: no previous prototype for 'tps6598x_displayport_notify' [-Wmissing-prototypes]
210 | int tps6598x_displayport_notify(struct typec_altmode *alt, unsigned long conf,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/typec/tipd/displayport.c: In function 'tps6598x_displayport_notify':
drivers/usb/typec/tipd/displayport.c:213:37: warning: unused variable 'partner' [-Wunused-variable]
213 | const struct typec_altmode *partner = typec_altmode_get_partner(alt);
| ^~~~~~~
vim +422 drivers/usb/typec/mux.c
410
411 int typec_mux_set(struct typec_mux *mux, struct typec_mux_state *state)
412 {
413 struct typec_mux_dev *mux_dev;
414 unsigned int i;
415 int ret;
416
417 if (IS_ERR_OR_NULL(mux))
418 return 0;
419
420 for (i = 0; i < mux->num_mux_devs; i++) {
421 mux_dev = mux->mux_devs[i];
> 422 dev_warn(&mux_dev->dev, "%s: 0x%02x\n", __func__, state->mode);
423
424 ret = mux_dev->set(mux_dev, state);
425 if (ret)
426 return ret;
427 }
428
429 return 0;
430 }
431 EXPORT_SYMBOL_GPL(typec_mux_set);
432
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-12 16:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-12 16:49 [povik:asahi-6.2-rc3-7_dp-altmode-wip 5/6] drivers/usb/typec/mux.c:422:41: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).