mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Tony Luck <tony.luck@intel.com>
Subject: drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types)
Date: Thu, 11 Jun 2020 14:12:48 +0800	[thread overview]
Message-ID: <202006111436.K1cDuwEt%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4487 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: 05933aac7b11911955de307a329dc2a7a14b7bd0 ia64: remove now unused machvec indirections
date:   10 months ago
config: ia64-randconfig-s032-20200611 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        git checkout 05933aac7b11911955de307a329dc2a7a14b7bd0
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=ia64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   ./arch/ia64/include/generated/uapi/asm/unistd_64.h:348:39: sparse: sparse: no newline at end of file
   drivers/atm/fore200e.c:439:12: sparse: sparse: cast to restricted __le32
>> drivers/atm/fore200e.c:447:12: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
>> drivers/atm/fore200e.c:447:12: sparse:     expected unsigned int [usertype] value
   drivers/atm/fore200e.c:447:12: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:225:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:225:22: sparse:     got restricted __le32 [usertype]

vim +447 drivers/atm/fore200e.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  434  
^1da177e4c3f41 Linus Torvalds 2005-04-16  435  static u32 fore200e_pca_read(volatile u32 __iomem *addr)
^1da177e4c3f41 Linus Torvalds 2005-04-16  436  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  437      /* on big-endian hosts, the board is configured to convert
^1da177e4c3f41 Linus Torvalds 2005-04-16  438         the endianess of slave RAM accesses  */
^1da177e4c3f41 Linus Torvalds 2005-04-16 @439      return le32_to_cpu(readl(addr));
^1da177e4c3f41 Linus Torvalds 2005-04-16  440  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  441  
^1da177e4c3f41 Linus Torvalds 2005-04-16  442  
^1da177e4c3f41 Linus Torvalds 2005-04-16  443  static void fore200e_pca_write(u32 val, volatile u32 __iomem *addr)
^1da177e4c3f41 Linus Torvalds 2005-04-16  444  {
^1da177e4c3f41 Linus Torvalds 2005-04-16  445      /* on big-endian hosts, the board is configured to convert
^1da177e4c3f41 Linus Torvalds 2005-04-16  446         the endianess of slave RAM accesses  */
^1da177e4c3f41 Linus Torvalds 2005-04-16 @447      writel(cpu_to_le32(val), addr);
^1da177e4c3f41 Linus Torvalds 2005-04-16  448  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  449  

:::::: The code at line 447 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30197 bytes --]

                 reply	other threads:[~2020-06-11  6:37 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=202006111436.K1cDuwEt%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hch@lst.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    /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

all inboxes | Powered by JetHome®