From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7097621327964787669==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH 6/6] bpf: Add kprobe link for attaching raw kprobes Date: Thu, 13 Jan 2022 07:40:12 +0800 Message-ID: <202201130737.O0QNCKhe-lkp@intel.com> In-Reply-To: <164191328259.806991.14418649843650864871.stgit@devnote2> List-Id: --===============7097621327964787669== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Masami, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on rostedt-trace/for-next] [also build test ERROR on bpf-next/master bpf/master linus/master v5.16] [cannot apply to next-20220112] [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] url: https://github.com/0day-ci/linux/commits/Masami-Hiramatsu/fprobe-Ad= d-ftrace-based-probe-APIs/20220112-000050 base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace= .git for-next config: i386-randconfig-m021 (https://download.01.org/0day-ci/archive/20220= 113/202201130737.O0QNCKhe-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/ba002e6556acd9e0af16442f4= 226ddb2a8759567 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Masami-Hiramatsu/fprobe-Add-ftrace= -based-probe-APIs/20220112-000050 git checkout ba002e6556acd9e0af16442f4226ddb2a8759567 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from kernel/bpf/syscall.c:34: >> include/linux/fprobes.h:28:20: error: field 'ftrace' has incomplete type 28 | struct ftrace_ops ftrace; | ^~~~~~ >> include/linux/fprobes.h:57:22: warning: no previous prototype for 'fprob= e_find_entry' [-Wmissing-prototypes] 57 | struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsign= ed long addr) | ^~~~~~~~~~~~~~~~~ vim +/ftrace +28 include/linux/fprobes.h 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 23 = 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 24 struct fprobe { 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 25 struct fprobe_entry *entri= es; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 26 unsigned int nentry; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 27 = 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 @28 struct ftrace_ops ftrace; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 29 unsigned long nmissed; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 30 unsigned int flags; c0e0471b58c3c9 Masami Hiramatsu 2022-01-12 31 struct rethook *rethook; c0e0471b58c3c9 Masami Hiramatsu 2022-01-12 32 = 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 33 void (*entry_handler) (str= uct fprobe *, unsigned long, struct pt_regs *); c0e0471b58c3c9 Masami Hiramatsu 2022-01-12 34 void (*exit_handler) (stru= ct fprobe *, unsigned long, struct pt_regs *); 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 35 }; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 36 = 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 37 #define FPROBE_FL_DISABLED 1 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 38 = 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 39 static inline bool fprobe_d= isabled(struct fprobe *fp) 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 40 { 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 41 return (fp) ? fp->flags & = FPROBE_FL_DISABLED : false; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 42 } 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 43 = 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 44 #ifdef CONFIG_FPROBES 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 45 int register_fprobe(struct = fprobe *fp); 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 46 int unregister_fprobe(struc= t fprobe *fp); 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 47 struct fprobe_entry *fprobe= _find_entry(struct fprobe *fp, unsigned long addr); 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 48 #else 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 49 static inline int register_= fprobe(struct fprobe *fp) 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 50 { 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 51 return -ENOTSUPP; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 52 } 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 53 static inline int unregiste= r_fprobe(struct fprobe *fp) 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 54 { 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 55 return -ENOTSUPP; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 56 } 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 @57 struct fprobe_entry *fprobe= _find_entry(struct fprobe *fp, unsigned long addr) 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 58 { 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 59 return NULL; 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 60 } 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 61 #endif 7b8ed3653f3755 Masami Hiramatsu 2022-01-12 62 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7097621327964787669==--