public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ian Abbott <abbotti@mev.co.uk>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: drivers/comedi/drivers/comedi_8254.c:139:31: sparse: sparse: cast to restricted __le16
Date: Thu, 12 Sep 2024 02:06:25 +0800	[thread overview]
Message-ID: <202409120105.yV1KBe45-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8d8d276ba2fb5f9ac4984f5c10ae60858090babc
commit: 98a15816636044f25be4644db2a3e09fad68aaf7 Revert "comedi: add HAS_IOPORT dependencies"
date:   1 year ago
config: m68k-randconfig-r113-20240911 (https://download.01.org/0day-ci/archive/20240912/202409120105.yV1KBe45-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240912/202409120105.yV1KBe45-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/202409120105.yV1KBe45-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/comedi/drivers/comedi_8254.c:139:31: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/comedi_8254.c:139:31: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/comedi_8254.c:139:31: sparse: sparse: cast to restricted __le16
>> drivers/comedi/drivers/comedi_8254.c:139:31: sparse: sparse: cast to restricted __le16
   drivers/comedi/drivers/comedi_8254.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/io.h):
   arch/m68k/include/asm/io_mm.h:164:21: sparse: sparse: Using plain integer as NULL pointer
   arch/m68k/include/asm/io_mm.h:164:21: sparse: sparse: Using plain integer as NULL pointer
   arch/m68k/include/asm/io_mm.h:164:21: sparse: sparse: Using plain integer as NULL pointer
   arch/m68k/include/asm/io_mm.h:164:21: sparse: sparse: Using plain integer as NULL pointer
   arch/m68k/include/asm/io_mm.h:164:21: sparse: sparse: Using plain integer as NULL pointer

vim +139 drivers/comedi/drivers/comedi_8254.c

d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  121  
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  122  static unsigned int __i8254_read(struct comedi_8254 *i8254, unsigned int reg)
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  123  {
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  124  	unsigned int reg_offset = (reg * i8254->iosize) << i8254->regshift;
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  125  	unsigned int val;
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  126  
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  127  	switch (i8254->iosize) {
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  128  	default:
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  129  	case I8254_IO8:
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  130  		if (i8254->mmio)
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  131  			val = readb(i8254->mmio + reg_offset);
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  132  		else
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  133  			val = inb(i8254->iobase + reg_offset);
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  134  		break;
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  135  	case I8254_IO16:
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  136  		if (i8254->mmio)
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  137  			val = readw(i8254->mmio + reg_offset);
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  138  		else
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23 @139  			val = inw(i8254->iobase + reg_offset);
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  140  		break;
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  141  	case I8254_IO32:
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  142  		if (i8254->mmio)
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  143  			val = readl(i8254->mmio + reg_offset);
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  144  		else
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  145  			val = inl(i8254->iobase + reg_offset);
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  146  		break;
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  147  	}
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  148  	return val & 0xff;
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  149  }
d42b5211d861f1 drivers/staging/comedi/drivers/comedi_8254.c H Hartley Sweeten 2015-02-23  150  

:::::: The code at line 139 was first introduced by commit
:::::: d42b5211d861f1077869e9133efa19297a6f152b staging: comedi: comedi_8254: introduce module for 8254 timer support

:::::: TO: H Hartley Sweeten <hsweeten@visionengravers.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

                 reply	other threads:[~2024-09-11 18:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202409120105.yV1KBe45-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=abbotti@mev.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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