Hi Pratyush, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on next-20221026] [cannot apply to bpf-next/master bpf/master linus/master v6.1-rc2 v6.1-rc1 v6.0 v6.1-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Pratyush-Kumar-Khan/kParser-Add-new-kParser-KMOD/20221026-165116 patch link: https://lore.kernel.org/r/20221026075054.119069-4-pratyush%40sipanda.io patch subject: [RFC PATCH 3/4] xdp: Support for kParser as bpf helper function config: m68k-allyesconfig compiler: m68k-linux-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/68a7f009f159f30d492393caa868d0a168dfa95d git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Pratyush-Kumar-Khan/kParser-Add-new-kParser-KMOD/20221026-165116 git checkout 68a7f009f159f30d492393caa868d0a168dfa95d # 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=m68k SHELL=/bin/bash net/core/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/core/filter.c:3995:5: warning: no previous prototype for 'kparser_xdp_parse' [-Wmissing-prototypes] 3995 | int kparser_xdp_parse(struct xdp_buff *xdp, void *conf, size_t conf_len, | ^~~~~~~~~~~~~~~~~ net/core/filter.c: In function '____bpf_xdp_kparser': >> net/core/filter.c:4054:13: warning: variable 'err' set but not used [-Wunused-but-set-variable] 4054 | int err; | ^~~ >> net/core/filter.c:4053:13: warning: variable 'len1' set but not used [-Wunused-but-set-variable] 4053 | int len1; | ^~~~ vim +/kparser_xdp_parse +3995 net/core/filter.c 3994 > 3995 int kparser_xdp_parse(struct xdp_buff *xdp, void *conf, size_t conf_len, 3996 void *_metadata, size_t metadata_len) 3997 { 3998 struct kparser_hkey *keyptr = (struct kparser_hkey *)conf; 3999 ktime_t start_time, stop_time, elapsed_time; 4000 struct kparser_hkey key; 4001 const void *parser; 4002 void *data; 4003 int pktlen; 4004 int rc = 0; 4005 4006 key.id = keyptr->id; 4007 strcpy(key.name, keyptr->name); 4008 pktlen = xdp_get_buff_len(xdp); 4009 data = (void *)(long)xdp->data; 4010 if (!kparser_funchooks.kparser_get_parser_hook) { 4011 pr_err("\n kparser module not loaded\n"); 4012 return -EINVAL; 4013 } else { 4014 parser = kparser_funchooks.kparser_get_parser_hook(&key); 4015 if (!parser) { 4016 pr_err("kparser_get_parser() failed, key:{%s:%u}\n", 4017 key.name, key.id); 4018 return -EINVAL; 4019 } 4020 } 4021 4022 if (!kparser_funchooks.__kparser_parse_hook) { 4023 pr_err("\n kparser module not loaded\n"); 4024 return -EINVAL; 4025 } else { 4026 #if KPARSER_DEBUG 4027 start_time = ktime_get(); 4028 #endif 4029 rc = kparser_funchooks.__kparser_parse_hook(parser, data, pktlen, 4030 _metadata, metadata_len); 4031 #if KPARSER_DEBUG 4032 stop_time = ktime_get(); 4033 elapsed_time = ktime_sub(stop_time, start_time); 4034 pr_err("elapsedTime : %lld\n", ktime_to_ns(elapsed_time)); 4035 #endif 4036 if (!kparser_funchooks.kparser_put_parser_hook) { 4037 pr_err("\n kparser module not loaded\n"); 4038 return -EINVAL; 4039 } else { 4040 if (kparser_funchooks.kparser_put_parser_hook(parser) != true) 4041 pr_err("kparser_put_parser() failed\n"); 4042 } 4043 #if KPARSER_DEBUG 4044 pr_debug("%s:rc:{%d:%s}\n", __func__, rc, kparser_code_to_text(rc)); 4045 #endif 4046 } 4047 return rc; 4048 } 4049 4050 BPF_CALL_5(bpf_xdp_kparser, struct xdp_buff *, xdp, void *, conf, 4051 u32, conf_len, void *, buf, u32, len) 4052 { > 4053 int len1; > 4054 int err; 4055 4056 len1 = xdp_get_buff_len(xdp); 4057 err = kparser_xdp_parse(xdp, conf, conf_len, buf, len); 4058 return 0; 4059 } 4060 -- 0-DAY CI Kernel Test Service https://01.org/lkp