Linux IIO development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Esteban Blanc" <eblanc@baylibre.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Jonathan Corbet" <corbet@lwn.net>
Cc: oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-doc@vger.kernel.org, Esteban Blanc <eblanc@baylibre.com>
Subject: Re: [PATCH v4 3/6] iio: adc: ad4030: add averaging support
Date: Sun, 16 Feb 2025 06:13:18 +0800	[thread overview]
Message-ID: <202502160603.zYl25ISM-lkp@intel.com> (raw)
In-Reply-To: <20250214-eblanc-ad4630_v1-v4-3-135dd66cab6a@baylibre.com>

Hi Esteban,

kernel test robot noticed the following build warnings:

[auto build test WARNING on a64dcfb451e254085a7daee5fe51bf22959d52d3]

url:    https://github.com/intel-lab-lkp/linux/commits/Esteban-Blanc/dt-bindings-iio-adc-add-ADI-ad4030-ad4630-and-ad4632/20250214-202727
base:   a64dcfb451e254085a7daee5fe51bf22959d52d3
patch link:    https://lore.kernel.org/r/20250214-eblanc-ad4630_v1-v4-3-135dd66cab6a%40baylibre.com
patch subject: [PATCH v4 3/6] iio: adc: ad4030: add averaging support
config: parisc-randconfig-r112-20250216 (https://download.01.org/0day-ci/archive/20250216/202502160603.zYl25ISM-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20250216/202502160603.zYl25ISM-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502160603.zYl25ISM-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/iio/adc/ad4030.c:375:27: sparse: sparse: incorrect type in assignment (different modifiers) @@     expected struct iio_scan_type *scan_type @@     got struct iio_scan_type const * @@
   drivers/iio/adc/ad4030.c:375:27: sparse:     expected struct iio_scan_type *scan_type
   drivers/iio/adc/ad4030.c:375:27: sparse:     got struct iio_scan_type const *
   drivers/iio/adc/ad4030.c: note: in included file (through include/linux/mutex.h, include/linux/notifier.h, include/linux/clk.h):
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
   include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +375 drivers/iio/adc/ad4030.c

   365	
   366	static int ad4030_get_chan_scale(struct iio_dev *indio_dev,
   367					 struct iio_chan_spec const *chan,
   368					 int *val,
   369					 int *val2)
   370	{
   371		struct ad4030_state *st = iio_priv(indio_dev);
   372		struct iio_scan_type *scan_type;
   373	
   374		if (chan->differential) {
 > 375			scan_type = iio_get_current_scan_type(indio_dev,
   376							      st->chip->channels);
   377			*val = (st->vref_uv * 2) / MILLI;
   378			*val2 = scan_type->realbits;
   379			return IIO_VAL_FRACTIONAL_LOG2;
   380		}
   381	
   382		*val = st->vref_uv / MILLI;
   383		*val2 = chan->scan_type.realbits;
   384		return IIO_VAL_FRACTIONAL_LOG2;
   385	}
   386	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-02-15 22:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14 12:22 [PATCH v4 0/6] iio: adc: ad4030: new driver for AD4030 and similar ADCs Esteban Blanc
2025-02-14 12:22 ` [PATCH v4 1/6] dt-bindings: iio: adc: add ADI ad4030, ad4630 and ad4632 Esteban Blanc
2025-02-16 15:35   ` Jonathan Cameron
2025-02-14 12:22 ` [PATCH v4 2/6] iio: adc: ad4030: add driver for ad4030-24 Esteban Blanc
2025-02-14 12:22 ` [PATCH v4 3/6] iio: adc: ad4030: add averaging support Esteban Blanc
2025-02-15 19:00   ` kernel test robot
2025-02-16 15:39     ` Jonathan Cameron
2025-02-15 19:34   ` kernel test robot
2025-02-15 22:13   ` kernel test robot [this message]
2025-02-14 12:22 ` [PATCH v4 4/6] iio: adc: ad4030: add support for ad4630-24 and ad4630-16 Esteban Blanc
2025-02-14 12:22 ` [PATCH v4 5/6] iio: adc: ad4030: add support for ad4632-16 and ad4632-24 Esteban Blanc
2025-02-14 12:22 ` [PATCH v4 6/6] docs: iio: ad4030: add documentation Esteban Blanc
2025-02-16 15:41   ` Jonathan Cameron
2025-02-16 15:42 ` [PATCH v4 0/6] iio: adc: ad4030: new driver for AD4030 and similar ADCs 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=202502160603.zYl25ISM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=eblanc@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@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