Re: [PATCH bpf-next 02/13] bpf: Helpers for skb dynptr read/write/slice
From: Jakub Sitnicki <jakub@cloudflare.com>
Date: 2025-07-01 11:13:40
Also in:
bpf, oe-kbuild-all
On Tue, Jul 01, 2025 at 10:03 AM +08, kernel test robot wrote:
Hi Jakub, kernel test robot noticed the following build errors: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Jakub-Sitnicki/bpf-Ignore-dynptr-offset-in-skb-data-access/20250630-225941 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20250630-skb-metadata-thru-dynptr-v1-2-f17da13625d8%40cloudflare.com patch subject: [PATCH bpf-next 02/13] bpf: Helpers for skb dynptr read/write/slice config: microblaze-allnoconfig (https://download.01.org/0day-ci/archive/20250701/202507010904.MkxDYPdY-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250701/202507010904.MkxDYPdY-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202507010904.MkxDYPdY-lkp@intel.com/ (local) All error/warnings (new ones prefixed by >>): In file included from kernel/sysctl.c:29:quoted
quoted
include/linux/filter.h:1788:1: error: expected identifier or '(' before '{' token1788 | { | ^ include/linux/filter.h:1795:1: error: expected identifier or '(' before '{' token 1795 | { | ^quoted
quoted
include/linux/filter.h:1785:19: warning: 'bpf_dynptr_skb_write' declared 'static' but never defined [-Wunused-function]1785 | static inline int bpf_dynptr_skb_write(const struct bpf_dynptr_kern *dst, | ^~~~~~~~~~~~~~~~~~~~quoted
quoted
include/linux/filter.h:1792:21: warning: 'bpf_dynptr_skb_slice' declared 'static' but never defined [-Wunused-function]1792 | static inline void *bpf_dynptr_skb_slice(const struct bpf_dynptr_kern *ptr, | ^~~~~~~~~~~~~~~~~~~~ vim +1788 include/linux/filter.h b5964b968ac64c Joanne Koong 2023-03-01 1784 e8b34e67737d71 Jakub Sitnicki 2025-06-30 @1785 static inline int bpf_dynptr_skb_write(const struct bpf_dynptr_kern *dst, e8b34e67737d71 Jakub Sitnicki 2025-06-30 1786 u32 offset, const void *src, u32 len, e8b34e67737d71 Jakub Sitnicki 2025-06-30 1787 u64 flags); b5964b968ac64c Joanne Koong 2023-03-01 @1788 { b5964b968ac64c Joanne Koong 2023-03-01 1789 return -EOPNOTSUPP; b5964b968ac64c Joanne Koong 2023-03-01 1790 } 05421aecd4ed65 Joanne Koong 2023-03-01 1791 e8b34e67737d71 Jakub Sitnicki 2025-06-30 @1792 static inline void *bpf_dynptr_skb_slice(const struct bpf_dynptr_kern *ptr, e8b34e67737d71 Jakub Sitnicki 2025-06-30 1793 u32 offset, void *buf, u32 len); e8b34e67737d71 Jakub Sitnicki 2025-06-30 1794
Copy-paste mistake - extra ';' in the stub definition when CONFIG_NET=n. My bad. Will fix and respin once people had more time to review.