lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <202305211619.O61tjQyE-lkp@intel.com>
Date: Sun, 21 May 2023 17:05:48 +0800
From: kernel test robot <lkp@...el.com>
To: Justin Chen <justin.chen@...adcom.com>, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-media@...r.kernel.org, dri-devel@...ts.freedesktop.org,
bcm-kernel-feedback-list@...adcom.com
Cc: oe-kbuild-all@...ts.linux.dev, justinpopo6@...il.com,
justin.chen@...adcom.com, f.fainelli@...il.com, davem@...emloft.net,
florian.fainelli@...adcom.com, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, opendmb@...il.com,
andrew@...n.ch, hkallweit1@...il.com, linux@...linux.org.uk,
richardcochran@...il.com, sumit.semwal@...aro.org,
christian.koenig@....com
Subject: Re: [PATCH net-next v3 3/6] net: bcmasp: Add support for ASP2.0
Ethernet controller
Hi Justin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Justin-Chen/dt-bindings-net-brcm-unimac-mdio-Add-asp-v2-0/20230520-052323
base: net-next/main
patch link: https://lore.kernel.org/r/1684531184-14009-4-git-send-email-justin.chen%40broadcom.com
patch subject: [PATCH net-next v3 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller
config: loongarch-randconfig-s032-20230521
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://github.com/intel-lab-lkp/linux/commit/a9faa319dd01367b8dc99ab86dc337596fe20c80
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Justin-Chen/dt-bindings-net-brcm-unimac-mdio-Add-asp-v2-0/20230520-052323
git checkout a9faa319dd01367b8dc99ab86dc337596fe20c80
# 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/net/ethernet/broadcom/asp2/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305211619.O61tjQyE-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/broadcom/asp2/bcmasp.c:355:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [addressable] [assigned] [usertype] val_16 @@ got int @@
drivers/net/ethernet/broadcom/asp2/bcmasp.c:355:16: sparse: expected restricted __be16 [addressable] [assigned] [usertype] val_16
drivers/net/ethernet/broadcom/asp2/bcmasp.c:355:16: sparse: got int
>> drivers/net/ethernet/broadcom/asp2/bcmasp.c:356:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [addressable] [assigned] [usertype] mask_16 @@ got int @@
drivers/net/ethernet/broadcom/asp2/bcmasp.c:356:17: sparse: expected restricted __be16 [addressable] [assigned] [usertype] mask_16
drivers/net/ethernet/broadcom/asp2/bcmasp.c:356:17: sparse: got int
--
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:186:18: sparse: sparse: cast from restricted __be16
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:186:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] ip_ver @@ got restricted __be16 [usertype] @@
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:186:16: sparse: expected unsigned short [usertype] ip_ver
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:186:16: sparse: got restricted __be16 [usertype]
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:227:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] nop @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:227:22: sparse: expected unsigned int [usertype] nop
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:227:22: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:228:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] header @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:228:25: sparse: expected unsigned int [usertype] header
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:228:25: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:229:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] header2 @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:229:26: sparse: expected unsigned int [usertype] header2
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:229:26: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:230:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] epkt @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:230:23: sparse: expected unsigned int [usertype] epkt
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:230:23: sparse: got restricted __be32 [usertype]
>> drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:231:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end @@ got restricted __be32 [usertype] @@
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:231:22: sparse: expected unsigned int [usertype] end
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c:231:22: sparse: got restricted __be32 [usertype]
vim +355 drivers/net/ethernet/broadcom/asp2/bcmasp.c
342
343 static void bcmasp_netfilt_tcpip6_wr(struct bcmasp_priv *priv,
344 struct bcmasp_net_filter *nfilt,
345 struct ethtool_tcpip6_spec *match,
346 struct ethtool_tcpip6_spec *mask,
347 u32 offset)
348 {
349 __be16 val_16, mask_16;
350
351 val_16 = htons(ETH_P_IPV6);
352 mask_16 = htons(0xFFFF);
353 bcmasp_netfilt_wr_m_wake(priv, nfilt, (ETH_ALEN * 2) + offset,
354 &val_16, &mask_16, sizeof(val_16));
> 355 val_16 = match->tclass << 4;
> 356 mask_16 = mask->tclass << 4;
357 bcmasp_netfilt_wr_m_wake(priv, nfilt, ETH_HLEN + offset,
358 &val_16, &mask_16, sizeof(val_16));
359 bcmasp_netfilt_wr_m_wake(priv, nfilt, ETH_HLEN + offset + 8,
360 &match->ip6src, &mask->ip6src,
361 sizeof(match->ip6src));
362 bcmasp_netfilt_wr_m_wake(priv, nfilt, ETH_HLEN + offset + 24,
363 &match->ip6dst, &mask->ip6dst,
364 sizeof(match->ip6dst));
365 bcmasp_netfilt_wr_m_wake(priv, nfilt, ETH_HLEN + offset + 40,
366 &match->psrc, &mask->psrc,
367 sizeof(match->psrc));
368 bcmasp_netfilt_wr_m_wake(priv, nfilt, ETH_HLEN + offset + 42,
369 &match->pdst, &mask->pdst,
370 sizeof(match->pdst));
371 }
372
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
View attachment "config" of type "text/plain" (184723 bytes)
Powered by blists - more mailing lists