All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202202090710.dTUDKxN3-lkp@intel.com> (raw)
In-Reply-To: <20220204165045.10518-1-marcin.szycik@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 3514 bytes --]

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-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/archive/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/926dc9532fd0b964087f8d72f0331efe70cd25bc
        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@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(a)lists.01.org

  reply	other threads:[~2022-02-09  0:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 16:49 [RFC PATCH net-next v4 0/6] ice: GTP support in switchdev Marcin Szycik
2022-02-04 16:50 ` [RFC PATCH net-next v4 1/6] gtp: Allow to create GTP device without FDs Marcin Szycik
2022-02-09  0:01   ` kernel test robot [this message]
2022-02-09  9:42   ` kernel test robot
2022-02-04 16:50 ` [RFC PATCH net-next v4 2/6] gtp: Add support for checking GTP device type Marcin Szycik
2022-02-04 16:50 ` [RFC PATCH net-next v4 3/6] net/sched: Allow flower to match on GTP options Marcin Szycik
2022-02-04 16:51 ` [RFC PATCH net-next v4 4/6] gtp: Implement GTP echo response Marcin Szycik
2022-02-05 16:51   ` Harald Welte
2022-02-08 14:12     ` Drewek, Wojciech
2022-02-11  9:16       ` Harald Welte
2022-02-11 10:27         ` Drewek, Wojciech
2022-02-11 12:48           ` Drewek, Wojciech
2022-02-12 11:05             ` Harald Welte
2022-02-04 16:51 ` [RFC PATCH net-next v4 5/6] ice: Fix FV offset searching Marcin Szycik
2022-02-04 16:51   ` [Intel-wired-lan] " Marcin Szycik
2022-02-04 16:51 ` [RFC PATCH net-next v4 6/6] ice: Support GTP-U and GTP-C offload in switchdev Marcin Szycik
2022-02-04 16:51   ` [Intel-wired-lan] " Marcin Szycik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202090710.dTUDKxN3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.