Hi Marcin,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Marcin-Szycik/ice-GTP-support-in...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
41414c9bdbb87cc5fbeee7dfc33137a96710fcac
config: arm64-randconfig-s032-20220208
(
https://download.01.org/0day-ci/archive/20220209/202202090710.dTUDKxN3-lk...)
compiler: aarch64-linux-gcc (GCC) 11.2.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-dirty
#
https://github.com/0day-ci/linux/commit/926dc9532fd0b964087f8d72f0331efe7...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Marcin-Szycik/ice-GTP-support-in-switchdev/20220205-005556
git checkout 926dc9532fd0b964087f8d72f0331efe70cd25bc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash
drivers/net/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/net/gtp.c:868:43: sparse: sparse: cast to restricted
__be16
> drivers/net/gtp.c:868:41: sparse: sparse: incorrect type in assignment (different
base types) @@ expected restricted __be16 [usertype] local_udp_port @@ got
unsigned short [usertype] @@
drivers/net/gtp.c:868:41: sparse: expected
restricted __be16 [usertype] local_udp_port
drivers/net/gtp.c:868:41: sparse: got unsigned short [usertype]
drivers/net/gtp.c:870:43: sparse: sparse: cast to restricted __be16
drivers/net/gtp.c:870:41: sparse: sparse: incorrect type in assignment (different base
types) @@ expected restricted __be16 [usertype] local_udp_port @@ got unsigned
short [usertype] @@
drivers/net/gtp.c:870:41: sparse: expected restricted __be16 [usertype]
local_udp_port
drivers/net/gtp.c:870:41: sparse: got unsigned short [usertype]
vim +868 drivers/net/gtp.c
855
856 static struct sock *gtp_encap_create_sock(int type, struct gtp_dev *gtp)
857 {
858 struct udp_tunnel_sock_cfg tuncfg = {};
859 struct udp_port_cfg udp_conf = {
860 .local_ip.s_addr = htonl(INADDR_ANY),
861 .family = AF_INET,
862 };
863 struct net *net = gtp->net;
864 struct socket *sock;
865 int err;
866
867 if (type == UDP_ENCAP_GTP0)
868 udp_conf.local_udp_port = ntohs(GTP0_PORT);
869 else
if (type == UDP_ENCAP_GTP1U)
870 udp_conf.local_udp_port = ntohs(GTP1U_PORT);
871 else
872 return ERR_PTR(-EINVAL);
873
874 err = udp_sock_create(net, &udp_conf, &sock);
875 if (err)
876 return ERR_PTR(err);
877
878 tuncfg.sk_user_data = gtp;
879 tuncfg.encap_type = type;
880 tuncfg.encap_rcv = gtp_encap_recv;
881 tuncfg.encap_destroy = NULL;
882
883 setup_udp_tunnel_sock(net, sock, &tuncfg);
884
885 return sock->sk;
886 }
887
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org