Hi Hangbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] [also build test WARNING on net-next/master next-20200525] [cannot apply to bpf/master net/master linus/master v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Hangbin-Liu/xdp-add-dev-map-multicast-support/20200523-141019 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: c6x-randconfig-r003-20200526 (attached as .config) compiler: c6x-elf-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>, old ones prefixed by <<): In file included from include/asm-generic/atomic.h:12, from ./arch/c6x/include/generated/asm/atomic.h:1, from include/linux/atomic.h:7, from include/asm-generic/bitops/lock.h:5, from arch/c6x/include/asm/bitops.h:87, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from net/core/filter.c:20: net/core/filter.c: In function 'bpf_clear_redirect_map': arch/c6x/include/asm/cmpxchg.h:55:3: warning: value computed is not used [-Wunused-value] 55 | ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | (unsigned long)(o), | ~~~~~~~~~~~~~~~~~~~~~ 57 | (unsigned long)(n), | ~~~~~~~~~~~~~~~~~~~~~ 58 | sizeof(*(ptr)))) | ~~~~~~~~~~~~~~~~ include/asm-generic/cmpxchg.h:106:28: note: in expansion of macro 'cmpxchg_local' 106 | #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) | ^~~~~~~~~~~~~ net/core/filter.c:3534:4: note: in expansion of macro 'cmpxchg' 3534 | cmpxchg(&ri->map, map, NULL); | ^~~~~~~ net/core/filter.c: At top level: >> net/core/filter.c:3787:20: warning: initialized field overwritten [-Woverride-init] 3787 | .arg1_type = ARG_CONST_MAP_PTR, | ^~~~~~~~~~~~~~~~~ net/core/filter.c:3787:20: note: (near initialization for 'bpf_xdp_redirect_map_multi_proto...arg1_type') /tmp/cc2n7hPR.s: Assembler messages: /tmp/cc2n7hPR.s:69347: Warning: ignoring changed section type for .far /tmp/cc2n7hPR.s:69347: Warning: ignoring changed section attributes for .far /tmp/cc2n7hPR.s:69454: Warning: ignoring changed section type for .far /tmp/cc2n7hPR.s:69454: Warning: ignoring changed section attributes for .far /tmp/cc2n7hPR.s:69503: Warning: ignoring changed section type for .far /tmp/cc2n7hPR.s:69503: Warning: ignoring changed section attributes for .far -- In file included from include/asm-generic/atomic.h:12, from ./arch/c6x/include/generated/asm/atomic.h:1, from include/linux/atomic.h:7, from include/asm-generic/bitops/lock.h:5, from arch/c6x/include/asm/bitops.h:87, from include/linux/bitops.h:29, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from net/core/filter.c:20: net/core/filter.c: In function 'bpf_clear_redirect_map': arch/c6x/include/asm/cmpxchg.h:55:3: warning: value computed is not used [-Wunused-value] 55 | ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | (unsigned long)(o), | ~~~~~~~~~~~~~~~~~~~~~ 57 | (unsigned long)(n), | ~~~~~~~~~~~~~~~~~~~~~ 58 | sizeof(*(ptr)))) | ~~~~~~~~~~~~~~~~ include/asm-generic/cmpxchg.h:106:28: note: in expansion of macro 'cmpxchg_local' 106 | #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) | ^~~~~~~~~~~~~ net/core/filter.c:3534:4: note: in expansion of macro 'cmpxchg' 3534 | cmpxchg(&ri->map, map, NULL); | ^~~~~~~ net/core/filter.c: At top level: >> net/core/filter.c:3787:20: warning: initialized field overwritten [-Woverride-init] 3787 | .arg1_type = ARG_CONST_MAP_PTR, | ^~~~~~~~~~~~~~~~~ net/core/filter.c:3787:20: note: (near initialization for 'bpf_xdp_redirect_map_multi_proto...arg1_type') /tmp/ccHtg48M.s: Assembler messages: /tmp/ccHtg48M.s:69347: Warning: ignoring changed section type for .far /tmp/ccHtg48M.s:69347: Warning: ignoring changed section attributes for .far /tmp/ccHtg48M.s:69454: Warning: ignoring changed section type for .far /tmp/ccHtg48M.s:69454: Warning: ignoring changed section attributes for .far /tmp/ccHtg48M.s:69503: Warning: ignoring changed section type for .far /tmp/ccHtg48M.s:69503: Warning: ignoring changed section attributes for .far vim +3787 net/core/filter.c 3781 3782 static const struct bpf_func_proto bpf_xdp_redirect_map_multi_proto = { 3783 .func = bpf_xdp_redirect_map_multi, 3784 .gpl_only = false, 3785 .ret_type = RET_INTEGER, 3786 .arg1_type = ARG_CONST_MAP_PTR, > 3787 .arg1_type = ARG_CONST_MAP_PTR, 3788 .arg3_type = ARG_ANYTHING, 3789 }; 3790 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org