[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202302110649.laICQKZV-lkp@intel.com>
Date: Sat, 11 Feb 2023 06:46:29 +0800
From: kernel test robot <lkp@...el.com>
To: Huacai Chen <chenhuacai@...ngson.cn>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
WANG Xuerui <git@...0n.name>,
Jianmin Lv <lvjianmin@...ngson.cn>
Subject: drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse:
incorrect type in argument 1 (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4f72a263e162938de26866b862ed6015f5725946
commit: 57fc7323a8e7c2e7c1d5795ab63cb3ffea3cfdfb LoongArch: Add PCI controller support
date: 6 months ago
config: loongarch-randconfig-s052-20230210 (https://download.01.org/0day-ci/archive/20230211/202302110649.laICQKZV-lkp@intel.com/config)
compiler: loongarch64-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=57fc7323a8e7c2e7c1d5795ab63cb3ffea3cfdfb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 57fc7323a8e7c2e7c1d5795ab63cb3ffea3cfdfb
# 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=loongarch olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/infiniband/hw/vmw_pvrdma/ net/core/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302110649.laICQKZV-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c: note: in included file:
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:306:16: sparse: sparse: cast to restricted __le32
--
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c: note: in included file:
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:306:16: sparse: sparse: cast to restricted __le32
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:306:16: sparse: sparse: cast to restricted __le32
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:306:16: sparse: sparse: cast to restricted __le32
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:306:16: sparse: sparse: cast to restricted __le32
>> drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: expected unsigned int [usertype] value
drivers/infiniband/hw/vmw_pvrdma/pvrdma.h:301:16: sparse: got restricted __le32 [usertype]
vim +301 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h
29c8d9eba550c6 Adit Ranadive 2016-10-02 298
29c8d9eba550c6 Adit Ranadive 2016-10-02 299 static inline void pvrdma_write_reg(struct pvrdma_dev *dev, u32 reg, u32 val)
29c8d9eba550c6 Adit Ranadive 2016-10-02 300 {
29c8d9eba550c6 Adit Ranadive 2016-10-02 @301 writel(cpu_to_le32(val), dev->regs + reg);
29c8d9eba550c6 Adit Ranadive 2016-10-02 302 }
29c8d9eba550c6 Adit Ranadive 2016-10-02 303
:::::: The code at line 301 was first introduced by commit
:::::: 29c8d9eba550c6d73d17cc1618a9f5f2a7345aa1 IB: Add vmw_pvrdma driver
:::::: TO: Adit Ranadive <aditr@...are.com>
:::::: CC: Doug Ledford <dledford@...hat.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
Powered by blists - more mailing lists