Content-Type: multipart/mixed; boundary="===============8343436676843118777==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH net-next] net: bpf: hook for inet port bind conflict check Date: Wed, 29 Dec 2021 19:32:46 +0800 Message-ID: <202112291915.muBKYGuT-lkp@intel.com> In-Reply-To: <20211229085547.206008-1-imagedong@tencent.com> List-Id: --===============8343436676843118777== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/menglong8-dong-gmail-com/n= et-bpf-hook-for-inet-port-bind-conflict-check/20211229-165656 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git = 271d3be1c3b6b0be083a99254a0ecac41789929b config: hexagon-buildonly-randconfig-r002-20211228 (https://download.01.org= /0day-ci/archive/20211229/202112291915.muBKYGuT-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b= 7ac0615afc6e0f1a30da2777e361de27a3) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/ca8b713d84b5e09a77bfae226= 287297f49cd97c9 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review menglong8-dong-gmail-com/net-bpf-h= ook-for-inet-port-bind-conflict-check/20211229-165656 git checkout ca8b713d84b5e09a77bfae226287297f49cd97c9 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash net/ipv4/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from net/ipv4/route.c:79: In file included from include/linux/mroute.h:10: In file included from include/linux/mroute_base.h:10: In file included from include/net/ip_fib.h:20: In file included from include/net/inetpeer.h:16: In file included from include/net/ipv6.h:12: In file included from include/linux/ipv6.h:92: In file included from include/linux/tcp.h:20: In file included from include/net/inet_connection_sock.h:21: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ net/ipv4/route.c:869:6: warning: variable 'log_martians' set but not use= d [-Wunused-but-set-variable] int log_martians; ^ 1 warning and 1 error generated. -- In file included from net/ipv4/inetpeer.c:22: In file included from include/net/ip.h:29: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ 1 error generated. -- In file included from net/ipv4/udp.c:100: In file included from include/net/icmp.h:19: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ >> net/ipv4/udp.c:203:9: error: implicit declaration of function 'BPF_CGROU= P_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declaration] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ 2 errors generated. -- In file included from net/ipv4/igmp.c:92: In file included from include/net/ip.h:29: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ net/ipv4/igmp.c:1905:6: warning: variable 'changerec' set but not used [= -Wunused-but-set-variable] int changerec =3D 0; ^ 1 warning and 1 error generated. -- In file included from net/ipv4/ip_gre.c:19: In file included from include/linux/tcp.h:20: In file included from include/net/inet_connection_sock.h:21: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ net/ipv4/ip_gre.c:143:15: warning: variable 'data_len' set but not used = [-Wunused-but-set-variable] unsigned int data_len =3D 0; ^ 1 warning and 1 error generated. -- In file included from net/ipv4/ah4.c:9: In file included from include/net/ip.h:29: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ net/ipv4/ah4.c:513:4: warning: format specifies type 'unsigned short' bu= t the argument has type 'int' [-Wformat] aalg_desc->uinfo.auth.icv_fullbits / 8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:523:34: note: expanded from macro 'pr_info' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:450:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:422:19: note: expanded from macro 'printk_index_w= rap' _p_func(_fmt, ##__VA_ARGS__); \ ~~~~ ^~~~~~~~~~~ 1 warning and 1 error generated. -- In file included from net/ipv4/esp4.c:8: In file included from include/net/ip.h:29: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ net/ipv4/esp4.c:1116:5: warning: format specifies type 'unsigned short' = but the argument has type 'int' [-Wformat] aalg_desc->uinfo.auth.icv_fullbits / 8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:523:34: note: expanded from macro 'pr_info' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:450:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:422:19: note: expanded from macro 'printk_index_w= rap' _p_func(_fmt, ##__VA_ARGS__); \ ~~~~ ^~~~~~~~~~~ 1 warning and 1 error generated. -- In file included from net/ipv4/netfilter/nf_reject_ipv4.c:7: In file included from include/net/ip.h:29: >> include/net/inet_sock.h:307:8: error: implicit declaration of function '= BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE' [-Werror,-Wimplicit-function-declarat= ion] res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); ^ net/ipv4/netfilter/nf_reject_ipv4.c:242:16: warning: variable 'niph' set= but not used [-Wunused-but-set-variable] struct iphdr *niph; ^ 1 warning and 1 error generated. vim +/BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE +307 include/net/inet_sock.h 300 = 301 static inline int inet_bind_conflict(struct sock *sk, int port) 302 { 303 int res; 304 int old =3D sk->sk_num; 305 = 306 sk->sk_num =3D port; > 307 res =3D BPF_CGROUP_RUN_PROG_INET_LPORT_INUSE(sk); 308 sk->sk_num =3D old; 309 return res; 310 } 311 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8343436676843118777==--