lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202502160351.NQfCUpV9-lkp@intel.com>
Date: Sun, 16 Feb 2025 03:34:51 +0800
From: kernel test robot <lkp@...el.com>
To: Esteban Blanc <eblanc@...libre.com>,
	Lars-Peter Clausen <lars@...afoo.de>,
	Michael Hennerich <Michael.Hennerich@...log.com>,
	Nuno Sá <nuno.sa@...log.com>,
	Jonathan Cameron <jic23@...nel.org>, Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	Jonathan Corbet <corbet@....net>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
	linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
	Esteban Blanc <eblanc@...libre.com>
Subject: Re: [PATCH v4 3/6] iio: adc: ad4030: add averaging support

Hi Esteban,

kernel test robot noticed the following build errors:

[auto build test ERROR 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: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20250216/202502160351.NQfCUpV9-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250216/202502160351.NQfCUpV9-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502160351.NQfCUpV9-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/iio/adc/ad4030.c:375:13: error: assigning to 'struct iio_scan_type *' from 'const struct iio_scan_type *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
     375 |                 scan_type = iio_get_current_scan_type(indio_dev,
         |                           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     376 |                                                       st->chip->channels);
         |                                                       ~~~~~~~~~~~~~~~~~~~
   1 error generated.


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ