Re: [PATCH bpf-next v5 2/3] bpf: Add xdp dynptrs
From: kernel test robot <hidden>
Date: 2022-09-01 03:11:23
Hi Joanne, Thank you for the patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Joanne-Koong/Add-skb-xdp-dynptrs/20220901-024122 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: arc-randconfig-r043-20220831 compiler: arc-elf-gcc (GCC) 12.1.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 # https://github.com/intel-lab-lkp/linux/commit/76ffb4e05d0ed50e427c9eb6664915de23d82fff git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Joanne-Koong/Add-skb-xdp-dynptrs/20220901-024122 git checkout 76ffb4e05d0ed50e427c9eb6664915de23d82fff # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <redacted> All error/warnings (new ones prefixed by >>): In file included from kernel/sysctl.c:35: include/linux/filter.h:1543:5: warning: no previous prototype for '__bpf_skb_load_bytes' [-Wmissing-prototypes] 1543 | int __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len) | ^~~~~~~~~~~~~~~~~~~~ include/linux/filter.h:1548:5: warning: no previous prototype for '__bpf_skb_store_bytes' [-Wmissing-prototypes] 1548 | int __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from, | ^~~~~~~~~~~~~~~~~~~~~
quoted
include/linux/filter.h:1554:5: warning: no previous prototype for '__bpf_xdp_load_bytes' [-Wmissing-prototypes]
1554 | int __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1559:5: warning: no previous prototype for '__bpf_xdp_store_bytes' [-Wmissing-prototypes]
1559 | int __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1564:7: warning: no previous prototype for 'bpf_xdp_pointer' [-Wmissing-prototypes]
1564 | void *bpf_xdp_pointer(struct xdp_buff *xdp, u32 offset, u32 len)
| ^~~~~~~~~~~~~~~
--
In file included from kernel/kallsyms.c:25:
include/linux/filter.h:1543:5: warning: no previous prototype for '__bpf_skb_load_bytes' [-Wmissing-prototypes]
1543 | int __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:1548:5: warning: no previous prototype for '__bpf_skb_store_bytes' [-Wmissing-prototypes]
1548 | int __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from,
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1554:5: warning: no previous prototype for '__bpf_xdp_load_bytes' [-Wmissing-prototypes]
1554 | int __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1559:5: warning: no previous prototype for '__bpf_xdp_store_bytes' [-Wmissing-prototypes]
1559 | int __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1564:7: warning: no previous prototype for 'bpf_xdp_pointer' [-Wmissing-prototypes]
1564 | void *bpf_xdp_pointer(struct xdp_buff *xdp, u32 offset, u32 len)
| ^~~~~~~~~~~~~~~
kernel/kallsyms.c:570:12: warning: no previous prototype for 'arch_get_kallsym' [-Wmissing-prototypes]
570 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
| ^~~~~~~~~~~~~~~~
--
arc-elf-ld: drivers/target/target_core_hba.o: in function `__bpf_skb_load_bytes':
target_core_hba.c:(.text+0x1d8): multiple definition of `__bpf_skb_load_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb44): first defined here
arc-elf-ld: drivers/target/target_core_hba.o: in function `__bpf_skb_store_bytes':
target_core_hba.c:(.text+0x1e0): multiple definition of `__bpf_skb_store_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb4c): first defined here
arc-elf-ld: drivers/target/target_core_hba.o: in function `__bpf_xdp_load_bytes':quoted
target_core_hba.c:(.text+0x1e8): multiple definition of `__bpf_xdp_load_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb54): first defined here
arc-elf-ld: drivers/target/target_core_hba.o: in function `__bpf_xdp_store_bytes':
quoted
target_core_hba.c:(.text+0x1f0): multiple definition of `__bpf_xdp_store_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb5c): first defined here
arc-elf-ld: drivers/target/target_core_hba.o: in function `bpf_xdp_pointer':
quoted
target_core_hba.c:(.text+0x1f8): multiple definition of `bpf_xdp_pointer'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb64): first defined here
arc-elf-ld: drivers/target/target_core_tpg.o: in function `__bpf_skb_load_bytes':
target_core_tpg.c:(.text+0x664): multiple definition of `__bpf_skb_load_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb44): first defined here
arc-elf-ld: drivers/target/target_core_tpg.o: in function `__bpf_skb_store_bytes':
target_core_tpg.c:(.text+0x66c): multiple definition of `__bpf_skb_store_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb4c): first defined here
arc-elf-ld: drivers/target/target_core_tpg.o: in function `__bpf_xdp_load_bytes':
target_core_tpg.c:(.text+0x674): multiple definition of `__bpf_xdp_load_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb54): first defined here
arc-elf-ld: drivers/target/target_core_tpg.o: in function `__bpf_xdp_store_bytes':
target_core_tpg.c:(.text+0x67c): multiple definition of `__bpf_xdp_store_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb5c): first defined here
arc-elf-ld: drivers/target/target_core_tpg.o: in function `bpf_xdp_pointer':
target_core_tpg.c:(.text+0x684): multiple definition of `bpf_xdp_pointer'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb64): first defined here
arc-elf-ld: drivers/target/target_core_transport.o: in function `__bpf_skb_load_bytes':
target_core_transport.c:(.text+0x4640): multiple definition of `__bpf_skb_load_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb44): first defined here
arc-elf-ld: drivers/target/target_core_transport.o: in function `__bpf_skb_store_bytes':
target_core_transport.c:(.text+0x4648): multiple definition of `__bpf_skb_store_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb4c): first defined here
arc-elf-ld: drivers/target/target_core_transport.o: in function `__bpf_xdp_load_bytes':
target_core_transport.c:(.text+0x4650): multiple definition of `__bpf_xdp_load_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb54): first defined here
arc-elf-ld: drivers/target/target_core_transport.o: in function `__bpf_xdp_store_bytes':
target_core_transport.c:(.text+0x4658): multiple definition of `__bpf_xdp_store_bytes'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb5c): first defined here
arc-elf-ld: drivers/target/target_core_transport.o: in function `bpf_xdp_pointer':
target_core_transport.c:(.text+0x4660): multiple definition of `bpf_xdp_pointer'; drivers/target/target_core_device.o:target_core_device.c:(.text+0xb64): first defined here
--
In file included from kernel/bpf/core.c:21:
include/linux/filter.h:1543:5: warning: no previous prototype for '__bpf_skb_load_bytes' [-Wmissing-prototypes]
1543 | int __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:1548:5: warning: no previous prototype for '__bpf_skb_store_bytes' [-Wmissing-prototypes]
1548 | int __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from,
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1554:5: warning: no previous prototype for '__bpf_xdp_load_bytes' [-Wmissing-prototypes]
1554 | int __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1559:5: warning: no previous prototype for '__bpf_xdp_store_bytes' [-Wmissing-prototypes]
1559 | int __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1564:7: warning: no previous prototype for 'bpf_xdp_pointer' [-Wmissing-prototypes]
1564 | void *bpf_xdp_pointer(struct xdp_buff *xdp, u32 offset, u32 len)
| ^~~~~~~~~~~~~~~
kernel/bpf/core.c:1623:12: warning: no previous prototype for 'bpf_probe_read_kernel' [-Wmissing-prototypes]
1623 | u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/bpf_verifier.h:9,
from kernel/bpf/btf.c:19:
include/linux/filter.h:1543:5: warning: no previous prototype for '__bpf_skb_load_bytes' [-Wmissing-prototypes]
1543 | int __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/filter.h:1548:5: warning: no previous prototype for '__bpf_skb_store_bytes' [-Wmissing-prototypes]
1548 | int __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from,
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1554:5: warning: no previous prototype for '__bpf_xdp_load_bytes' [-Wmissing-prototypes]
1554 | int __bpf_xdp_load_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1559:5: warning: no previous prototype for '__bpf_xdp_store_bytes' [-Wmissing-prototypes]
1559 | int __bpf_xdp_store_bytes(struct xdp_buff *xdp, u32 offset, void *buf, u32 len)
| ^~~~~~~~~~~~~~~~~~~~~quoted
include/linux/filter.h:1564:7: warning: no previous prototype for 'bpf_xdp_pointer' [-Wmissing-prototypes]
1564 | void *bpf_xdp_pointer(struct xdp_buff *xdp, u32 offset, u32 len)
| ^~~~~~~~~~~~~~~
kernel/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:6612:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
6612 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:6649:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
6649 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
--
0-DAY CI Kernel Test Service
https://01.org/lkp