[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202511221834.DmWdWn3a-lkp@intel.com>
Date: Sat, 22 Nov 2025 18:31:23 +0800
From: kernel test robot <lkp@...el.com>
To: Kurt Borja <kuurtb@...il.com>, Jonathan Cameron <jic23@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Tobias Sperling <tobias.sperling@...ting.com>
Cc: oe-kbuild-all@...ts.linux.dev, David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Kurt Borja <kuurtb@...il.com>
Subject: Re: [PATCH 2/2] iio: adc: Add ti-ads1x18 driver
Hi Kurt,
kernel test robot noticed the following build warnings:
[auto build test WARNING on f9e05791642810a0cf6237d39fafd6fec5e0b4bb]
url: https://github.com/intel-lab-lkp/linux/commits/Kurt-Borja/dt-bindings-iio-adc-Add-TI-ADS1018-ADS1118/20251122-012031
base: f9e05791642810a0cf6237d39fafd6fec5e0b4bb
patch link: https://lore.kernel.org/r/20251121-ads1x18-v1-2-86db080fc9a4%40gmail.com
patch subject: [PATCH 2/2] iio: adc: Add ti-ads1x18 driver
config: openrisc-randconfig-r131-20251122 (https://download.01.org/0day-ci/archive/20251122/202511221834.DmWdWn3a-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251122/202511221834.DmWdWn3a-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/202511221834.DmWdWn3a-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/adc/ti-ads1x18.c:237:16: sparse: sparse: cast to restricted __be16
>> drivers/iio/adc/ti-ads1x18.c:244:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __be16 [usertype] @@
drivers/iio/adc/ti-ads1x18.c:244:28: sparse: expected unsigned short
drivers/iio/adc/ti-ads1x18.c:244:28: sparse: got restricted __be16 [usertype]
drivers/iio/adc/ti-ads1x18.c:788:15: sparse: sparse: cast to restricted __be16
drivers/iio/adc/ti-ads1x18.c:813:15: sparse: sparse: cast to restricted __be16
vim +237 drivers/iio/adc/ti-ads1x18.c
226
227 static int __ads1x18_read_conver(struct ads1x18 *ads1x18, u16 *cnv)
228 {
229 int ret;
230
231 ads1x18->tx_buf[0] = 0;
232 ads1x18->tx_buf[1] = 0;
233 ret = spi_sync_locked(ads1x18->spi, &ads1x18->message);
234 if (ret)
235 return ret;
236
> 237 *cnv = be16_to_cpu(ads1x18->rx_buf[0]);
238
239 return 0;
240 }
241
242 static int __ads1x18_write_config(struct ads1x18 *ads1x18, u16 cfg)
243 {
> 244 ads1x18->tx_buf[0] = cpu_to_be16(cfg);
245 ads1x18->tx_buf[1] = 0;
246
247 return spi_sync_locked(ads1x18->spi, &ads1x18->message);
248 }
249
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists