Content-Type: multipart/mixed; boundary="===============7793672061575816521==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH net-next v4 1/6] gtp: Allow to create GTP device without FDs Date: Wed, 09 Feb 2022 08:01:30 +0800 Message-ID: <202202090710.dTUDKxN3-lkp@intel.com> In-Reply-To: <20220204165045.10518-1-marcin.szycik@linux.intel.com> List-Id: --===============7793672061575816521== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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-supp= ort-in-switchdev/20220205-005556 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/arc= hive/20220209/202202090710.dTUDKxN3-lkp(a)intel.com/config) 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/926dc9532fd0b964087f8d72f= 0331efe70cd25bc git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Marcin-Szycik/ice-GTP-support-in-s= witchdev/20220205-005556 git checkout 926dc9532fd0b964087f8d72f0331efe70cd25bc # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Da= rm64 SHELL=3D/bin/bash drivers/net/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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_ud= p_port @@ got unsigned short [usertype] @@ drivers/net/gtp.c:868:41: sparse: expected restricted __be16 [userty= pe] 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_ud= p_port @@ got unsigned short [usertype] @@ drivers/net/gtp.c:870:41: sparse: expected restricted __be16 [userty= pe] 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 =3D {}; 859 struct udp_port_cfg udp_conf =3D { 860 .local_ip.s_addr =3D htonl(INADDR_ANY), 861 .family =3D AF_INET, 862 }; 863 struct net *net =3D gtp->net; 864 struct socket *sock; 865 int err; 866 = 867 if (type =3D=3D UDP_ENCAP_GTP0) > 868 udp_conf.local_udp_port =3D ntohs(GTP0_PORT); 869 else if (type =3D=3D UDP_ENCAP_GTP1U) 870 udp_conf.local_udp_port =3D ntohs(GTP1U_PORT); 871 else 872 return ERR_PTR(-EINVAL); 873 = 874 err =3D udp_sock_create(net, &udp_conf, &sock); 875 if (err) 876 return ERR_PTR(err); 877 = 878 tuncfg.sk_user_data =3D gtp; 879 tuncfg.encap_type =3D type; 880 tuncfg.encap_rcv =3D gtp_encap_recv; 881 tuncfg.encap_destroy =3D 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(a)lists.01.org --===============7793672061575816521==--