[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211171424.RfUSUpA6-lkp@intel.com>
Date: Thu, 17 Nov 2022 14:26:28 +0800
From: kernel test robot <lkp@...el.com>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Guenter Roeck <linux@...ck-us.net>,
Michael Schmitz <schmitzmic@...il.com>
Subject: drivers/comedi/drivers/das16m1.c:343:23: sparse: sparse: cast to
restricted __le16
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cc675d22e422442f6d230654a55a5fc5682ea018
commit: 30b5e6ef4a32ea4985b99200e06d6660a69f9246 m68k: atari: Make Atari ROM port I/O write macros return void
date: 6 months ago
config: m68k-randconfig-s052-20221117
compiler: m68k-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30b5e6ef4a32ea4985b99200e06d6660a69f9246
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 30b5e6ef4a32ea4985b99200e06d6660a69f9246
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash drivers/comedi/drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/comedi/drivers/das16m1.c:343:23: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/das16m1.c:343:23: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/das16m1.c:343:23: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/das16m1.c:343:23: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/das16m1.c: note: in included file (through arch/m68k/include/asm/io_mm.h, arch/m68k/include/asm/io.h, include/linux/io.h, ...):
arch/m68k/include/asm/raw_io.h:457:26: sparse: sparse: cast to restricted __le16
arch/m68k/include/asm/raw_io.h:457:26: sparse: sparse: cast to restricted __le16
arch/m68k/include/asm/raw_io.h:457:26: sparse: sparse: cast to restricted __le16
arch/m68k/include/asm/raw_io.h:457:26: sparse: sparse: cast to restricted __le16
--
>> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/ni_at_ao.c:159:19: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_at_ao.c:282:9: sparse: sparse: cast to restricted __le16
--
>> drivers/comedi/drivers/ni_daq_700.c:163:17: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/ni_daq_700.c:163:17: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/ni_daq_700.c:163:17: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/ni_daq_700.c:163:17: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:173:21: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:173:21: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:173:21: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:173:21: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:205:9: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:205:9: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:205:9: sparse: sparse: cast to restricted __le16
drivers/comedi/drivers/ni_daq_700.c:205:9: sparse: sparse: cast to restricted __le16
vim +343 drivers/comedi/drivers/das16m1.c
ab984177b3c3ff drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2014-02-10 320
5c8694d699d44d drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 321 static int das16m1_ai_insn_read(struct comedi_device *dev,
0a85b6f0ab0d2e drivers/staging/comedi/drivers/das16m1.c Mithlesh Thukral 2009-06-08 322 struct comedi_subdevice *s,
5c8694d699d44d drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 323 struct comedi_insn *insn,
5c8694d699d44d drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 324 unsigned int *data)
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 325 {
ab984177b3c3ff drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2014-02-10 326 int ret;
d0e50e6588e236 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 327 int i;
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 328
a70615894a0916 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 329 das16m1_ai_set_queue(dev, &insn->chanspec, 1);
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 330
d0e50e6588e236 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 331 for (i = 0; i < insn->n; i++) {
a782a851e3ba67 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 332 unsigned short val;
a782a851e3ba67 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 333
6b62e7578b82c7 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 334 /* clear interrupt */
6b62e7578b82c7 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 335 outb(0, dev->iobase + DAS16M1_CLR_INTR_REG);
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 336 /* trigger conversion */
a782a851e3ba67 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 337 outb(0, dev->iobase + DAS16M1_AI_REG);
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 338
ab984177b3c3ff drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2014-02-10 339 ret = comedi_timeout(dev, s, insn, das16m1_ai_eoc, 0);
22ca19d93d92c7 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2014-02-10 340 if (ret)
ab984177b3c3ff drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2014-02-10 341 return ret;
ab984177b3c3ff drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2014-02-10 342
a782a851e3ba67 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 @343 val = inw(dev->iobase + DAS16M1_AI_REG);
d0e50e6588e236 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 344 data[i] = DAS16M1_AI_TO_SAMPLE(val);
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 345 }
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 346
d0e50e6588e236 drivers/staging/comedi/drivers/das16m1.c H Hartley Sweeten 2016-05-03 347 return insn->n;
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 348 }
9afbebe411a0f9 drivers/staging/comedi/drivers/das16m1.c Frank Mori Hess 2009-02-18 349
:::::: The code at line 343 was first introduced by commit
:::::: a782a851e3ba67e4bd8360b1429cde3ece7d6957 staging: comedi: das16m1: tidy up analog input data register defines
:::::: TO: H Hartley Sweeten <hsweeten@...ionengravers.com>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (113096 bytes)
Powered by blists - more mailing lists