[mkl-can-next:mcp25xxfd 56/57] drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c:259:2: note: in expansion of macro 'pr_err'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git mcp25xxfd
head:   fc940214e54b37f338dc9e308cd6501b96fcdb0a
commit: f454cd8f7219276a896924cab7fe60f2d6be4a6a [56/57] random debugging
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
        git checkout f454cd8f7219276a896924cab7fe60f2d6be4a6a
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:7:0,
                    from include/linux/kernel.h:15,
                    from drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c:10:
   drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c: In function 'mcp25xxfd_can_fifo_clear_regs':
   include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
    #define KERN_ERR KERN_SOH "3" /* error conditions */
                     ^~~~~~~~
   include/linux/printk.h:304:9: note: in expansion of macro 'KERN_ERR'
     printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
            ^~~~~~~~
>> drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c:259:2: note: in expansion of macro 'pr_err'
     pr_err("%s: start=0x%03x, end=0x%03x, len=%d\n", __func__, start, end, len);
     ^~~~~~
   drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c:259:45: note: format string is defined here
     pr_err("%s: start=0x%03x, end=0x%03x, len=%d\n", __func__, start, end, len);
                                               ~^
                                               %ld

vim +/pr_err +259 drivers/net/can/spi/mcp25xxfd/mcp25xxfd_can_fifo.c

   248	
   249	static int mcp25xxfd_can_fifo_clear_regs(struct mcp25xxfd_can_priv *cpriv,
   250						 u32 start, u32 end)
   251	{
   252		size_t len = end - start;
   253		u8 *data = kzalloc(len, GFP_KERNEL);
   254		int ret;
   255	
   256		if (!data)
   257			return -ENOMEM;
   258	
 > 259		pr_err("%s: start=0x%03x, end=0x%03x, len=%d\n", __func__, start, end, len);
   260	
   261		ret = mcp25xxfd_cmd_write_regs(cpriv->priv->spi,
   262					       start, (u32 *)data, len);
   263	
   264		kfree(data);
   265	
   266		return ret;
   267	}
   268	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux