mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Paweł Grudziński" <pgrudzinski@openmailbox.org>
Cc: kbuild-all@01.org, Lars-Peter Clausen <lars@metafoo.de>,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Jonathan Cameron <jic23@kernel.org>,
	Hartmut Knaack <knaack.h@gmx.de>,
	Peter Meerwald <pmeerw@pmeerw.net>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	Pawel Grudzinski <pgrudzinski@openmailbox.org>
Subject: Re: [PATCH v2] iio: dac: ad5380: Fix probe failure when no external reference is supplied
Date: Sat, 23 Jul 2016 23:14:24 +0800	[thread overview]
Message-ID: <201607232331.cPzQE6c4%fengguang.wu@intel.com> (raw)
In-Reply-To: <20160719061302.8360-1-pgrudzinski@openmailbox.org>

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

Hi,

[auto build test WARNING on iio/togreg]
[also build test WARNING on v4.7-rc7 next-20160722]
[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/Pawe-Grudzi-ski/iio-dac-ad5380-Fix-probe-failure-when-no-external-reference-is-supplied/20160723-221946
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/iio/dac/ad5380.c: In function 'ad5380_probe':
>> drivers/iio/dac/ad5380.c:423:8: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
       ret = st->vref_reg;
           ^

vim +423 drivers/iio/dac/ad5380.c

   407			if (ret) {
   408				dev_err(dev, "Failed to enable vref regulators: %d\n",
   409					ret);
   410				goto error_free_reg;
   411			}
   412	
   413			ret = regulator_get_voltage(st->vref_reg);
   414			if (ret < 0)
   415				goto error_disable_reg;
   416	
   417			st->vref = ret / 1000;
   418		} else {
   419			if (PTR_ERR(st->vref_reg) == -ENODEV) {
   420				st->vref = st->chip_info->int_vref;
   421				ctrl |= AD5380_CTRL_INT_VREF_EN;
   422			} else {
 > 423				ret = st->vref_reg;
   424				goto error_free_reg;
   425			}
   426		}
   427	
   428		ret = regmap_write(st->regmap, AD5380_REG_SF_CTRL, ctrl);
   429		if (ret) {
   430			dev_err(dev, "Failed to write to device: %d\n", ret);
   431			goto error_disable_reg;

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

  reply	other threads:[~2016-07-23 15:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19  6:12 Paweł Grudziński
2016-07-23 15:14 ` kbuild test robot [this message]
2016-07-24 10:03 ` 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=201607232331.cPzQE6c4%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Michael.Hennerich@analog.com \
    --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=pgrudzinski@openmailbox.org \
    --cc=pmeerw@pmeerw.net \
    /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®