[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201510011532.v3Y1F5iG%fengguang.wu@intel.com>
Date: Thu, 1 Oct 2015 15:40:19 +0800
From: kbuild test robot <lkp@...el.com>
To: jon@...gle.org
Cc: kbuild-all@...org, broonie@...nel.org, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
Jon Ringle <jringle@...dpoint.com>
Subject: Re: [PATCH 2/2] net: Microchip encx24j600 driver
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
Download attachment ".config.gz" of type "application/octet-stream" (43417 bytes)
Powered by blists - more mailing lists