linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Martin Kaiser <martin@kaiser.cx>
Cc: kbuild-all@01.org, Jonathan Cameron <jic23@kernel.org>,
	Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Rob Herring <robh+dt@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx>
Subject: Re: [PATCH] iio: potentiometer: add a driver for Maxim 5432-5435
Date: Tue, 23 Jul 2019 04:13:58 +0800	[thread overview]
Message-ID: <201907230400.SnJ0XCx0%lkp@intel.com> (raw)
In-Reply-To: <20190721175915.27192-1-martin@kaiser.cx>

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

Hi Martin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.3-rc1 next-20190722]
[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/Martin-Kaiser/iio-potentiometer-add-a-driver-for-Maxim-5432-5435/20190723-024214
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/iio/potentiometer/max5432.c: In function 'max5432_probe':
>> drivers/iio/potentiometer/max5432.c:99:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     data->ohm = (u32)of_device_get_match_data(dev);
                 ^

vim +99 drivers/iio/potentiometer/max5432.c

    83	
    84	static int max5432_probe(
    85			struct i2c_client *client, const struct i2c_device_id *id)
    86	{
    87		struct device *dev = &client->dev;
    88		struct iio_dev *indio_dev;
    89		struct max5432_data *data;
    90	
    91		indio_dev = devm_iio_device_alloc(dev, sizeof(struct max5432_data));
    92		if (!indio_dev)
    93			return -ENOMEM;
    94	
    95		i2c_set_clientdata(client, indio_dev);
    96	
    97		data = iio_priv(indio_dev);
    98		data->client = client;
  > 99		data->ohm = (u32)of_device_get_match_data(dev);
   100	
   101		indio_dev->dev.parent = dev;
   102		indio_dev->info = &max5432_info;
   103		indio_dev->channels = max5432_channels;
   104		indio_dev->num_channels = ARRAY_SIZE(max5432_channels);
   105		indio_dev->name = client->name;
   106	
   107		return devm_iio_device_register(dev, indio_dev);
   108	}
   109	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 66313 bytes --]

  parent reply	other threads:[~2019-07-22 20:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-21 17:59 [PATCH] iio: potentiometer: add a driver for Maxim 5432-5435 Martin Kaiser
2019-07-21 20:48 ` Peter Meerwald-Stadler
2019-07-22 20:13 ` kbuild test robot [this message]
2019-07-23  8:53 ` [PATCH v2] " Martin Kaiser
2019-07-27 20:45   ` Jonathan Cameron
2019-07-29 11:45 ` [PATCH v3 1/2] " Martin Kaiser
2019-07-29 11:45   ` [PATCH v3 2/2] dt-bindings: iio: potentiometer: add max5432.yaml binding Martin Kaiser
2019-07-29 23:43     ` Rob Herring
2019-07-31 14:07 ` [PATCH v4 1/2] iio: potentiometer: add a driver for Maxim 5432-5435 Martin Kaiser
2019-07-31 14:07   ` [PATCH v4 2/2] dt-bindings: iio: potentiometer: add max5432.yaml binding Martin Kaiser
2019-07-31 16:50     ` Rob Herring
2019-08-05 13:32       ` Jonathan Cameron
2019-08-05 13:30   ` [PATCH v4 1/2] iio: potentiometer: add a driver for Maxim 5432-5435 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=201907230400.SnJ0XCx0%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --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=martin@kaiser.cx \
    --cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).