mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Florian Vaussard <florian.vaussard@gmail.com>
Cc: kbuild-all@01.org, devicetree@vger.kernel.org,
	Jonathan Cameron <jic23@kernel.org>,
	Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>, Peter Rosin <peda@axentia.se>,
	Slawomir Stepien <sst@poczta.fm>,
	Joachim Eastwood <manabian@gmail.com>,
	Matt Ranostay <mranostay@gmail.com>,
	Cristina Moraru <cristina.moraru09@gmail.com>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	Florian Vaussard <florian.vaussard@heig-vd.ch>
Subject: Re: [PATCH 3/3] iio: potentiometer: mcp4531: Add device tree binding
Date: Tue, 21 Jun 2016 15:34:24 +0800	[thread overview]
Message-ID: <201606211524.7QTYmkfT%fengguang.wu@intel.com> (raw)
In-Reply-To: <1466492137-32683-4-git-send-email-florian.vaussard@heig-vd.ch>

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

Hi,

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.7-rc4 next-20160620]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Florian-Vaussard/iio-potentiometer-mcp4531-New-parts-and-device-tree/20160621-150032
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: x86_64-randconfig-i0-201625 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/iio/potentiometer/mcp4531.c: In function 'mcp4531_probe':
>> drivers/iio/potentiometer/mcp4531.c:280:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      devid = (int)of_device_get_match_data(dev);
              ^

vim +280 drivers/iio/potentiometer/mcp4531.c

   264				 const struct i2c_device_id *id)
   265	{
   266		struct device *dev = &client->dev;
   267		unsigned long devid;
   268		struct mcp4531_data *data;
   269		struct iio_dev *indio_dev;
   270		const struct of_device_id *match;
   271	
   272		if (!i2c_check_functionality(client->adapter,
   273					     I2C_FUNC_SMBUS_WORD_DATA)) {
   274			dev_err(dev, "SMBUS Word Data not supported\n");
   275			return -EOPNOTSUPP;
   276		}
   277	
   278		match = of_match_device(of_match_ptr(mcp45xx_of_match), dev);
   279		if (match)
 > 280			devid = (int)of_device_get_match_data(dev);
   281		else
   282			devid = id->driver_data;
   283	
   284		indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
   285		if (!indio_dev)
   286			return -ENOMEM;
   287		data = iio_priv(indio_dev);
   288		i2c_set_clientdata(client, indio_dev);

---
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: 28400 bytes --]

  reply	other threads:[~2016-06-21  7:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21  6:55 [PATCH 0/3] iio: potentiometer: mcp4531: New parts and device tree Florian Vaussard
2016-06-21  6:55 ` [PATCH 1/3] iio: potentiometer: mcp4531: Add support for MCP454x, MCP456x, MCP464x and MCP466x Florian Vaussard
2016-06-21  7:28   ` Peter Rosin
2016-06-21  6:55 ` [PATCH 2/3] iio: potentiometer: mcp4531: Add device tree binding documentation Florian Vaussard
2016-06-21  7:38   ` Peter Rosin
2016-06-21  7:49     ` Florian Vaussard
2016-06-21 21:37       ` Rob Herring
2016-06-21 21:43   ` Rob Herring
2016-06-22  6:19     ` Florian Vaussard
2016-06-21  6:55 ` [PATCH 3/3] iio: potentiometer: mcp4531: Add device tree binding Florian Vaussard
2016-06-21  7:34   ` kbuild test robot [this message]
2016-06-21  7:51   ` Peter Rosin
2016-06-22  6:22     ` Florian Vaussard
2016-06-22  7:06       ` Peter Rosin
2016-06-23  8:50         ` Florian Vaussard
2016-06-26 14:53           ` Jonathan Cameron
2016-06-26 14:53 ` [PATCH 0/3] iio: potentiometer: mcp4531: New parts and device tree Jonathan Cameron

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=201606211524.7QTYmkfT%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=cristina.moraru09@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=florian.vaussard@gmail.com \
    --cc=florian.vaussard@heig-vd.ch \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=jic23@kernel.org \
    --cc=kbuild-all@01.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manabian@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=mranostay@gmail.com \
    --cc=pawel.moll@arm.com \
    --cc=peda@axentia.se \
    --cc=pmeerw@pmeerw.net \
    --cc=robh+dt@kernel.org \
    --cc=sst@poczta.fm \
    /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®