[xilinx-xlnx:master 316/326] drivers/usb/misc/usb2244.c:30:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int'

kernel test robot lkp at intel.com
Wed Jan 12 10:21:52 PST 2022


tree:   https://github.com/Xilinx/linux-xlnx master
head:   6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 86b8431235c705e722728c75c641b002bf527c13 [316/326] usb: misc: usb2244: add support for USB2 ultra fast sd controller
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220113/202201130250.ZQDPqjLv-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.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/Xilinx/linux-xlnx/commit/86b8431235c705e722728c75c641b002bf527c13
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout 86b8431235c705e722728c75c641b002bf527c13
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/usb/misc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   drivers/usb/misc/usb2244.c: In function 'usb2244_init_hw':
>> drivers/usb/misc/usb2244.c:30:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
      30 |                               "Failed to request reset GPIO %d, errcode",
         |                                                             ~^
         |                                                              |
         |                                                              int
         |                                                             %ld
      31 |                               PTR_ERR(data->reset_gpio));
         |                               ~~~~~~~~~~~~~~~~~~~~~~~~~       
         |                               |
         |                               long int

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_PANEL_SIMPLE
   Depends on HAS_IOMEM && DRM && DRM_PANEL && OF && BACKLIGHT_CLASS_DEVICE && PM
   Selected by
   - DRM_XLNX_DSI && HAS_IOMEM && DRM_XLNX


vim +30 drivers/usb/misc/usb2244.c

    20	
    21	static int usb2244_init_hw(struct device *dev, struct usb2244 *data)
    22	{
    23		data = devm_kzalloc(dev, sizeof(struct usb2244), GFP_KERNEL);
    24		if (!data)
    25			return -ENOMEM;
    26	
    27		data->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
    28		if (IS_ERR(data->reset_gpio)) {
    29			dev_err_probe(dev, PTR_ERR(data->reset_gpio),
  > 30				      "Failed to request reset GPIO %d, errcode",
    31				      PTR_ERR(data->reset_gpio));
    32			return PTR_ERR(data->reset_gpio);
    33		}
    34	
    35		/* Toggle RESET_N to reset the hub. */
    36		gpiod_set_value_cansleep(data->reset_gpio, 0);
    37		usleep_range(5, 10);
    38		gpiod_set_value_cansleep(data->reset_gpio, 1);
    39		msleep(5);
    40	
    41		return 0;
    42	}
    43	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list