[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202006121340.HnsoKIIX%lkp@intel.com>
Date: Fri, 12 Jun 2020 13:09:48 +0800
From: kernel test robot <lkp@...el.com>
To: Christoph Hellwig <hch@....de>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Tony Luck <tony.luck@...el.com>
Subject: drivers/net/ethernet/brocade/bna/bfa_ioc.c:1905:24: 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: b791d1bdf9212d944d749a5c7ff6febdba241771
commit: 05933aac7b11911955de307a329dc2a7a14b7bd0 ia64: remove now unused machvec indirections
date: 10 months ago
config: ia64-randconfig-s031-20200612 (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@...el.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/net/ethernet/brocade/bna/bfa_ioc.c:1925:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1925:28: sparse: expected unsigned short [assigned] [usertype] clscode
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1925:28: sparse: got restricted __be16 [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1926:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] rsvd @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1926:25: sparse: expected unsigned short [assigned] [usertype] rsvd
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1926:25: sparse: got restricted __be16 [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1928:29: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1928:29: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1928:29: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1928:29: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1928:29: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1928:29: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1939:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1939:29: sparse: expected unsigned short [assigned] [usertype] clscode
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1939:29: sparse: got restricted __be16 [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1940:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] rsvd @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1940:26: sparse: expected unsigned short [assigned] [usertype] rsvd
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1940:26: sparse: got restricted __be16 [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1942:30: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1942:30: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1942:30: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1942:30: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1942:30: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1942:30: sparse: sparse: cast to restricted __be32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
>> drivers/net/ethernet/brocade/bna/bfa_ioc.c:1905:24: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
>> drivers/net/ethernet/brocade/bna/bfa_ioc.c:1905:24: sparse: expected unsigned int [usertype] value
drivers/net/ethernet/brocade/bna/bfa_ioc.c:1905:24: sparse: got restricted __le32 [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2107:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2107:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2107:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2107:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2107:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2107:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2108:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2108:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2108:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2108:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2108:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2108:31: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2109:31: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2109:31: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2109:31: sparse: sparse: cast to restricted __be16
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2109:31: sparse: sparse: cast to restricted __be16
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2211:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2211:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2211:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2211:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2211:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2211:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2424:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2424:25: sparse: expected unsigned int [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:2424:25: sparse: got restricted __be32 [usertype]
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3064:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3064:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3064:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3064:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3064:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3064:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3066:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3066:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3066:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3066:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3066:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3066:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3069:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3069:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3069:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3069:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3069:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3069:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3097:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3097:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3097:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3097:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3097:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3097:21: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3099:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3099:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3099:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3099:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3099:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3099:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3102:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3102:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3102:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3102:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3102:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3102:23: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3136:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3136:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3136:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3136:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3136:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3136:26: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3143:40: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3143:40: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3143:40: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3143:40: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3143:40: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3143:40: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3144:39: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3144:39: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3144:39: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3144:39: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3144:39: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3144:39: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3147:41: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3147:41: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/brocade/bna/bfa_ioc.c:3147:41: sparse: sparse: too many warnings
vim +1905 drivers/net/ethernet/brocade/bna/bfa_ioc.c
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1892
8a891429d1879a drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-25 1893 static void
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1894 bfa_ioc_mbox_send(struct bfa_ioc *ioc, void *ioc_msg, int len)
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1895 {
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1896 u32 *msgp = (u32 *) ioc_msg;
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1897 u32 i;
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1898
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1899 BUG_ON(!(len <= BFI_IOC_MSGLEN_MAX));
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1900
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1901 /*
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1902 * first write msg to mailbox registers
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1903 */
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1904 for (i = 0; i < len / sizeof(u32); i++)
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 @1905 writel(cpu_to_le32(msgp[i]),
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1906 ioc->ioc_regs.hfn_mbox + i * sizeof(u32));
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1907
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1908 for (; i < BFI_IOC_MSGLEN_MAX / sizeof(u32); i++)
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1909 writel(0, ioc->ioc_regs.hfn_mbox + i * sizeof(u32));
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1910
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1911 /*
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1912 * write 1 to mailbox CMD to trigger LPU event
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1913 */
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1914 writel(1, ioc->ioc_regs.hfn_mbox_cmd);
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1915 (void) readl(ioc->ioc_regs.hfn_mbox_cmd);
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1916 }
8b230ed8ec96c9 drivers/net/bna/bfa_ioc.c Rasesh Mody 2010-08-23 1917
:::::: The code at line 1905 was first introduced by commit
:::::: 8b230ed8ec96c933047dd0625cf95f739e4939a6 bna: Brocade 10Gb Ethernet device driver
:::::: TO: Rasesh Mody <rmody@...cade.com>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (24153 bytes)
Powered by blists - more mailing lists