* [linux-next:master 6049/11059] drivers/net/ethernet/mediatek/mtk_ppe_offload.c:89:19: sparse: sparse: cast to restricted __be32
@ 2021-04-09 8:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-09 8:28 UTC (permalink / raw)
To: Felix Fietkau; +Cc: kbuild-all, Linux Memory Management List, Pablo Neira Ayuso
[-- Attachment #1: Type: text/plain, Size: 2448 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6145d80cfc62e3ed8f16ff584d6287e6d88b82b9
commit: 502e84e2382d92654a2ecbc52cdbdb5a11cdcec7 [6049/11059] net: ethernet: mtk_eth_soc: add flow offloading support
config: arm64-randconfig-s032-20210409 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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.3-279-g6d5d9b42-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=502e84e2382d92654a2ecbc52cdbdb5a11cdcec7
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 502e84e2382d92654a2ecbc52cdbdb5a11cdcec7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64
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 >>)
>> drivers/net/ethernet/mediatek/mtk_ppe_offload.c:89:19: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/mediatek/mtk_ppe_offload.c:93:41: sparse: sparse: restricted __be32 degrades to integer
drivers/net/ethernet/mediatek/mtk_ppe_offload.c:46:10: sparse: sparse: Initializer entry defined twice
drivers/net/ethernet/mediatek/mtk_ppe_offload.c:47:10: sparse: also defined here
vim +89 drivers/net/ethernet/mediatek/mtk_ppe_offload.c
83
84
85 static int
86 mtk_flow_mangle_ports(const struct flow_action_entry *act,
87 struct mtk_flow_data *data)
88 {
> 89 u32 val = ntohl(act->mangle.val);
90
91 switch (act->mangle.offset) {
92 case 0:
> 93 if (act->mangle.mask == ~htonl(0xffff))
94 data->dst_port = cpu_to_be16(val);
95 else
96 data->src_port = cpu_to_be16(val >> 16);
97 break;
98 case 2:
99 data->dst_port = cpu_to_be16(val);
100 break;
101 default:
102 return -EINVAL;
103 }
104
105 return 0;
106 }
107
---
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: 41068 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-09 8:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 8:28 [linux-next:master 6049/11059] drivers/net/ethernet/mediatek/mtk_ppe_offload.c:89:19: sparse: sparse: cast to restricted __be32 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).