Hi Jon,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please 
ignore]

config: sparc-allmodconfig (attached as .config)
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout abb68976e3057f70babddaf71802ed126d0297bc
        # save the attached .config to linux build tree
        make.cross ARCH=sparc 

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/microchip/encx24j600-regmap.c: In function 
'regmap_encx24j600_read':
>> drivers/net/ethernet/microchip/encx24j600-regmap.c:310:3: warning: format 
>> '%d' expects argument of type 'int', but argument 4 has type 'size_t' 
>> [-Wformat=]
      pr_err("%s: reg=%02x reg_size=%d\n", __func__, reg, reg_size);
      ^
   drivers/net/ethernet/microchip/encx24j600-regmap.c:318:3: warning: format 
'%d' expects argument of type 'int', but argument 4 has type 'size_t' 
[-Wformat=]
      pr_err("%s: reg=%02x val_size=%d\n", __func__, reg, val_size);
      ^

vim +310 drivers/net/ethernet/microchip/encx24j600-regmap.c

   294          if (reg > 0xa0)
   295                  return regmap_encx24j600_spi_write(context, reg, dout, 
len);
   296  
   297          if (len > 2)
   298                  return -EINVAL;
   299  
   300          return regmap_encx24j600_sfr_write(context, reg, dout, len);
   301  }
   302  
   303  static int regmap_encx24j600_read(void *context,
   304                                    const void *reg_buf, size_t reg_size,
   305                                    void *val, size_t val_size)
   306  {
   307          u8 reg = *(const u8 *)reg_buf;
   308  
   309          if (reg_size != 1) {
 > 310                  pr_err("%s: reg=%02x reg_size=%d\n", __func__, reg, 
 > reg_size);
   311                  return -EINVAL;
   312          }
   313  
   314          if (reg > 0xa0)
   315                  return regmap_encx24j600_spi_read(context, reg, val, 
val_size);
   316  
   317          if (val_size > 2) {
   318                  pr_err("%s: reg=%02x val_size=%d\n", __func__, reg, 
val_size);

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

Attachment: .config.gz
Description: Binary data

Reply via email to