All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:master 324/326] drivers/usb/misc/usb5744.c:35:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int'
@ 2022-01-12 19:13 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-12 19:13 UTC (permalink / raw)
  To: Piyush Mehta; +Cc: kbuild-all, linux-arm-kernel, Michal Simek

tree:   https://github.com/Xilinx/linux-xlnx master
head:   6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 6ca1f4cd372fb97452dda4dfe6e79e285d604776 [324/326] usb: misc: usb5744: fix error handling for reset-gpio
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220113/202201130345.WgSNJfhS-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/6ca1f4cd372fb97452dda4dfe6e79e285d604776
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout 6ca1f4cd372fb97452dda4dfe6e79e285d604776
        # 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@intel.com>

All warnings (new ones prefixed by >>):

   drivers/usb/misc/usb5744.c: In function 'usb5744_init_hw':
>> drivers/usb/misc/usb5744.c:35:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
      35 |                               "Failed to request reset GPIO %d, errcode",
         |                                                             ~^
         |                                                              |
         |                                                              int
         |                                                             %ld
      36 |                               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 +35 drivers/usb/misc/usb5744.c

    25	
    26	static int usb5744_init_hw(struct device *dev, struct usb5744 *data)
    27	{
    28		data = devm_kzalloc(dev, sizeof(struct usb5744), GFP_KERNEL);
    29		if (!data)
    30			return -ENOMEM;
    31	
    32		data->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
    33		if (IS_ERR(data->reset_gpio)) {
    34			dev_err_probe(dev, PTR_ERR(data->reset_gpio),
  > 35				      "Failed to request reset GPIO %d, errcode",
    36				      PTR_ERR(data->reset_gpio));
    37			return PTR_ERR(data->reset_gpio);
    38		}
    39	
    40		if (data->reset_gpio) {
    41			/* Toggle RESET_N to reset the hub. */
    42			if (dev_is_platform(dev))
    43				gpiod_set_value(data->reset_gpio, 0);
    44			else
    45				gpiod_set_value_cansleep(data->reset_gpio, 0);
    46	
    47			/* Delay - Sleep for an approximate time 5 to 20 usecs */
    48			usleep_range(5, 20);
    49	
    50			if (dev_is_platform(dev))
    51				gpiod_set_value(data->reset_gpio, 1);
    52			else
    53				gpiod_set_value_cansleep(data->reset_gpio, 1);
    54	
    55			msleep(5);
    56		}
    57	
    58		return 0;
    59	}
    60	

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [xilinx-xlnx:master 324/326] drivers/usb/misc/usb5744.c:35:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int'
@ 2022-01-12 19:13 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-12 19:13 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3618 bytes --]

tree:   https://github.com/Xilinx/linux-xlnx master
head:   6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 6ca1f4cd372fb97452dda4dfe6e79e285d604776 [324/326] usb: misc: usb5744: fix error handling for reset-gpio
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20220113/202201130345.WgSNJfhS-lkp(a)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/6ca1f4cd372fb97452dda4dfe6e79e285d604776
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout 6ca1f4cd372fb97452dda4dfe6e79e285d604776
        # 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@intel.com>

All warnings (new ones prefixed by >>):

   drivers/usb/misc/usb5744.c: In function 'usb5744_init_hw':
>> drivers/usb/misc/usb5744.c:35:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=]
      35 |                               "Failed to request reset GPIO %d, errcode",
         |                                                             ~^
         |                                                              |
         |                                                              int
         |                                                             %ld
      36 |                               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 +35 drivers/usb/misc/usb5744.c

    25	
    26	static int usb5744_init_hw(struct device *dev, struct usb5744 *data)
    27	{
    28		data = devm_kzalloc(dev, sizeof(struct usb5744), GFP_KERNEL);
    29		if (!data)
    30			return -ENOMEM;
    31	
    32		data->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
    33		if (IS_ERR(data->reset_gpio)) {
    34			dev_err_probe(dev, PTR_ERR(data->reset_gpio),
  > 35				      "Failed to request reset GPIO %d, errcode",
    36				      PTR_ERR(data->reset_gpio));
    37			return PTR_ERR(data->reset_gpio);
    38		}
    39	
    40		if (data->reset_gpio) {
    41			/* Toggle RESET_N to reset the hub. */
    42			if (dev_is_platform(dev))
    43				gpiod_set_value(data->reset_gpio, 0);
    44			else
    45				gpiod_set_value_cansleep(data->reset_gpio, 0);
    46	
    47			/* Delay - Sleep for an approximate time 5 to 20 usecs */
    48			usleep_range(5, 20);
    49	
    50			if (dev_is_platform(dev))
    51				gpiod_set_value(data->reset_gpio, 1);
    52			else
    53				gpiod_set_value_cansleep(data->reset_gpio, 1);
    54	
    55			msleep(5);
    56		}
    57	
    58		return 0;
    59	}
    60	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-12 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 19:13 [xilinx-xlnx:master 324/326] drivers/usb/misc/usb5744.c:35:62: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' kernel test robot
2022-01-12 19:13 ` kernel test robot

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.