net/netfilter/nf_tables_offload.c:135:24: sparse: sparse: incorrect type in initializer (different base types)

From: kbuild test robot
Date: Sat Jul 13 2019 - 21:39:03 EST


tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a2d79c7174aeb43b13020dd53d85a7aefdd9f3e5
commit: c9626a2cbdb20e26587b3fad99960520a023432b netfilter: nf_tables: add hardware offload support
date: 4 days ago
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
git checkout c9626a2cbdb20e26587b3fad99960520a023432b
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


sparse warnings: (new ones prefixed by >>)

>> net/netfilter/nf_tables_offload.c:135:24: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __be16 [usertype] proto @@ got e] proto @@
>> net/netfilter/nf_tables_offload.c:135:24: sparse: expected restricted __be16 [usertype] proto
>> net/netfilter/nf_tables_offload.c:135:24: sparse: got int

vim +135 net/netfilter/nf_tables_offload.c

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation