lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201510032231.3qbjCybC%fengguang.wu@intel.com>
Date:	Sat, 3 Oct 2015 22:56:47 +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 net-next v3 2/2] net: Microchip encx24j600 driver

Hi Jon,

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

config: mn10300-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
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

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:272:3: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=]
      pr_err("%s: reg=%02x reg_size=%zu\n", __func__, reg, reg_size);
      ^
   drivers/net/ethernet/microchip/encx24j600-regmap.c:280:3: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=]
      pr_err("%s: reg=%02x val_size=%zu\n", __func__, reg, val_size);
      ^

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

   256		if (reg > 0xa0)
   257			return regmap_encx24j600_spi_write(context, reg, dout, len);
   258	
   259		if (len > 2)
   260			return -EINVAL;
   261	
   262		return regmap_encx24j600_sfr_write(context, reg, dout, len);
   263	}
   264	
   265	static int regmap_encx24j600_read(void *context,
   266					  const void *reg_buf, size_t reg_size,
   267					  void *val, size_t val_size)
   268	{
   269		u8 reg = *(const u8 *)reg_buf;
   270	
   271		if (reg_size != 1) {
 > 272			pr_err("%s: reg=%02x reg_size=%zu\n", __func__, reg, reg_size);
   273			return -EINVAL;
   274		}
   275	
   276		if (reg > 0xa0)
   277			return regmap_encx24j600_spi_read(context, reg, val, val_size);
   278	
   279		if (val_size > 2) {
   280			pr_err("%s: reg=%02x val_size=%zu\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" (35881 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ