CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Ciara Loftus <[email protected]>
Hi Ciara, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Ciara-Loftus/XDP_REDIRECT_XSK-and-Batched-AF_XDP-Rx/20211116-153952 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master :::::: branch date: 8 hours ago :::::: commit date: 8 hours ago config: sparc64-randconfig-s031-20211116 (attached as .config) compiler: sparc64-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/06daa8f48870f74b06ed02fe7f36b820c09844c9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Ciara-Loftus/XDP_REDIRECT_XSK-and-Batched-AF_XDP-Rx/20211116-153952 git checkout 06daa8f48870f74b06ed02fe7f36b820c09844c9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash net/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) >> net/core/dev.c:4883:33: sparse: sparse: typename in expression net/core/dev.c:4883:40: sparse: sparse: Expected ; at end of statement net/core/dev.c:4883:40: sparse: sparse: got xdp_sock net/core/dev.c:4884:41: sparse: sparse: Expected ; at end of statement net/core/dev.c:4884:41: sparse: sparse: got ) >> net/core/dev.c:4890:33: sparse: sparse: break/continue not in iterator scope >> net/core/dev.c:4892:25: sparse: sparse: not in switch scope net/core/dev.c:4897:33: sparse: sparse: break/continue not in iterator scope net/core/dev.c:4898:25: sparse: sparse: not in switch scope net/core/dev.c:4900:33: sparse: sparse: break/continue not in iterator scope net/core/dev.c:4904:9: sparse: sparse: Expected ; at the end of type declaration net/core/dev.c:4904:9: sparse: sparse: got } net/core/dev.c:4906:10: sparse: sparse: Expected ; at end of declaration net/core/dev.c:4906:10: sparse: sparse: got : >> net/core/dev.c:4908:9: sparse: sparse: Trying to use reserved word 'return' >> as identifier net/core/dev.c:4908:16: sparse: sparse: Expected ; at end of declaration net/core/dev.c:4908:16: sparse: sparse: got XDP_DROP net/core/dev.c:4909:1: sparse: sparse: Expected ; at the end of type declaration net/core/dev.c:4909:1: sparse: sparse: got } net/core/dev.c:4883:33: sparse: sparse: undefined identifier 'struct' net/core/dev.c:4884:41: sparse: sparse: undefined identifier '__compiletime_assert_610' net/core/dev.c:4886:55: sparse: sparse: undefined identifier 'xs' >> net/core/dev.c:4888:41: sparse: sparse: label 'out_redir' was not declared net/core/dev.c:4896:41: sparse: sparse: label 'out_redir' was not declared vim +4883 net/core/dev.c d445516966dcb2 John Fastabend 2017-07-17 4870 7c4974786f4794 Jason Wang 2017-08-11 4871 int do_xdp_generic(struct bpf_prog *xdp_prog, struct sk_buff *skb) d445516966dcb2 John Fastabend 2017-07-17 4872 { d445516966dcb2 John Fastabend 2017-07-17 4873 if (xdp_prog) { 02671e23e7b383 Björn Töpel 2018-05-02 4874 struct xdp_buff xdp; 02671e23e7b383 Björn Töpel 2018-05-02 4875 u32 act; 6103aa96ec077c John Fastabend 2017-07-17 4876 int err; d445516966dcb2 John Fastabend 2017-07-17 4877 02671e23e7b383 Björn Töpel 2018-05-02 4878 act = netif_receive_generic_xdp(skb, &xdp, xdp_prog); d445516966dcb2 John Fastabend 2017-07-17 4879 if (act != XDP_PASS) { 6103aa96ec077c John Fastabend 2017-07-17 4880 switch (act) { 06daa8f48870f7 Ciara Loftus 2021-11-16 4881 #ifdef CONFIG_XDP_SOCKETS 06daa8f48870f7 Ciara Loftus 2021-11-16 4882 case XDP_REDIRECT_XSK: 06daa8f48870f7 Ciara Loftus 2021-11-16 @4883 struct xdp_sock *xs = 06daa8f48870f7 Ciara Loftus 2021-11-16 4884 READ_ONCE(skb->dev->_rx[xdp.rxq->queue_index].xsk); 06daa8f48870f7 Ciara Loftus 2021-11-16 4885 06daa8f48870f7 Ciara Loftus 2021-11-16 4886 err = xsk_generic_rcv(xs, &xdp); 06daa8f48870f7 Ciara Loftus 2021-11-16 4887 if (err) 06daa8f48870f7 Ciara Loftus 2021-11-16 @4888 goto out_redir; 06daa8f48870f7 Ciara Loftus 2021-11-16 4889 consume_skb(skb); 06daa8f48870f7 Ciara Loftus 2021-11-16 @4890 break; 06daa8f48870f7 Ciara Loftus 2021-11-16 4891 #endif 6103aa96ec077c John Fastabend 2017-07-17 @4892 case XDP_REDIRECT: 2facaad6000f23 Jesper Dangaard Brouer 2017-08-24 4893 err = xdp_do_generic_redirect(skb->dev, skb, 02671e23e7b383 Björn Töpel 2018-05-02 4894 &xdp, xdp_prog); 6103aa96ec077c John Fastabend 2017-07-17 4895 if (err) 6103aa96ec077c John Fastabend 2017-07-17 4896 goto out_redir; 02671e23e7b383 Björn Töpel 2018-05-02 4897 break; 6103aa96ec077c John Fastabend 2017-07-17 4898 case XDP_TX: d445516966dcb2 John Fastabend 2017-07-17 4899 generic_xdp_tx(skb, xdp_prog); 6103aa96ec077c John Fastabend 2017-07-17 4900 break; 6103aa96ec077c John Fastabend 2017-07-17 4901 } d445516966dcb2 John Fastabend 2017-07-17 4902 return XDP_DROP; d445516966dcb2 John Fastabend 2017-07-17 4903 } d445516966dcb2 John Fastabend 2017-07-17 4904 } d445516966dcb2 John Fastabend 2017-07-17 4905 return XDP_PASS; 6103aa96ec077c John Fastabend 2017-07-17 @4906 out_redir: 6103aa96ec077c John Fastabend 2017-07-17 4907 kfree_skb(skb); 6103aa96ec077c John Fastabend 2017-07-17 @4908 return XDP_DROP; d445516966dcb2 John Fastabend 2017-07-17 4909 } 7c4974786f4794 Jason Wang 2017-08-11 4910 EXPORT_SYMBOL_GPL(do_xdp_generic); d445516966dcb2 John Fastabend 2017-07-17 4911 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
