mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: jon@ringle.org
Cc: kbuild-all@01.org, broonie@kernel.org,
	gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, Jon Ringle <jringle@gridpoint.com>
Subject: Re: [PATCH 2/2] net: Microchip encx24j600 driver
Date: Thu, 1 Oct 2015 15:40:19 +0800	[thread overview]
Message-ID: <201510011532.v3Y1F5iG%fengguang.wu@intel.com> (raw)
In-Reply-To: <1443681187-29505-2-git-send-email-jon@ringle.org>

[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]

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 #2: .config.gz --]
[-- Type: application/octet-stream, Size: 43417 bytes --]

  parent reply	other threads:[~2015-10-01  7:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  6:33 [PATCH 1/2] regmap: Allow installing custom reg_update_bits function jon
2015-10-01  6:33 ` [PATCH 2/2] net: Microchip encx24j600 driver jon
2015-10-01  6:48   ` kbuild test robot
2015-10-01  7:36   ` kbuild test robot
2015-10-01  7:36   ` [RFC PATCH] net: encx24j600_open() can be static kbuild test robot
2015-10-01  7:40   ` kbuild test robot [this message]
2015-10-01  9:44 ` [PATCH 1/2] regmap: Allow installing custom reg_update_bits function Mark Brown
2015-10-01 12:29   ` Jon Ringle
2015-10-02 17:19     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201510011532.v3Y1F5iG%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jon@ringle.org \
    --cc=jringle@gridpoint.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®