[nomadik:ux500-golden-v5.8-rc1 10/13] drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:62:20: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int'

kernel test robot lkp at intel.com
Mon Jun 29 04:58:36 EDT 2020


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-golden-v5.8-rc1
head:   cc15a24c42e401236980e6e3bece32ec04a78c81
commit: 08e3c1769cecd81f1d78640bc4f627e96d276918 [10/13] drm/panel: Add DSI transport so s6e63m0
config: h8300-allyesconfig (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.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
        git checkout 08e3c1769cecd81f1d78640bc4f627e96d276918
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300 

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 >>):

   In file included from drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:12:
   drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c: In function 's6e63m0_dsi_dcs_write':
>> drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:62:20: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=]
      62 |  DRM_DEV_INFO(dev, "sent command %02x %02x bytes\n",
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      63 |        cmd, len - 1);
         |             ~~~~~~~ 
         |                 |
         |                 long unsigned int
   include/drm/drm_print.h:366:33: note: in definition of macro 'DRM_DEV_INFO'
     366 |  drm_dev_printk(dev, KERN_INFO, fmt, ##__VA_ARGS__)
         |                                 ^~~
   drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c:62:42: note: format string is defined here
      62 |  DRM_DEV_INFO(dev, "sent command %02x %02x bytes\n",
         |                                       ~~~^
         |                                          |
         |                                          unsigned int
         |                                       %02lx

vim +62 drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c

    17	
    18	static int s6e63m0_dsi_dcs_write(struct device *dev, const u8 *data, size_t len)
    19	{
    20		struct mipi_dsi_device *dsi = to_mipi_dsi_device(dev);
    21		const u8 *seqp = data;
    22		u8 cmd;
    23		int cmdwritten = 0;
    24		int chunk;
    25		int ret;
    26	
    27		DRM_DEV_INFO(dev, "DSI writing dcs seq: %*ph\n", (int)len, data);
    28	
    29		/* Pick out the DCS command */
    30		cmd = *seqp;
    31		seqp++;
    32		cmdwritten++;
    33		chunk = len - 1;
    34	
    35		/* Send max 15 bytes at a time */
    36		if (chunk > DSI_MAX_CHUNK)
    37			chunk = DSI_MAX_CHUNK;
    38		ret = mipi_dsi_dcs_write(dsi, cmd, seqp, chunk);
    39		if (ret < 0) {
    40			DRM_DEV_ERROR(dev,
    41				      "error sending DCS command seq cmd %02x\n",
    42				      cmd);
    43			return ret;
    44		}
    45		cmdwritten += chunk;
    46		seqp += chunk;
    47	
    48		while (cmdwritten < len) {
    49			chunk = len - cmdwritten;
    50			if (chunk > DSI_MAX_CHUNK)
    51				chunk = DSI_MAX_CHUNK;
    52			ret = mipi_dsi_generic_write(dsi, seqp, chunk);
    53			if (ret < 0) {
    54				DRM_DEV_ERROR(dev,
    55					      "error sending generic write seq %02x\n",
    56					      cmd);
    57				return ret;
    58			}
    59			cmdwritten += chunk;
    60			seqp += chunk;
    61		}
  > 62		DRM_DEV_INFO(dev, "sent command %02x %02x bytes\n",
    63			     cmd, len - 1);
    64	
    65		usleep_range(8000, 9000);
    66	
    67		return 0;
    68	}
    69	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 55685 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200629/ec0f40c1/attachment-0001.gz>


More information about the linux-arm-kernel mailing list