public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/tracing_multi 15/26] kernel/bpf/trampoline.c:1236:8: error: implicit declaration of function 'set_filter_ftrace_direct_multi' is invalid in C99
@ 2023-01-21 14:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-21 14:57 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi
head:   e79b272f8d9eb2a5990c18c3e4db22f7eb2fe9bc
commit: 344656556fbfdfcd3164ffb4d3e9bda0358bae81 [15/26] bpf: Add support to attach multi trampolines
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20230121/202301212207.XqiRKGL9-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=344656556fbfdfcd3164ffb4d3e9bda0358bae81
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/tracing_multi
        git checkout 344656556fbfdfcd3164ffb4d3e9bda0358bae81
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> kernel/bpf/trampoline.c:1236:8: error: implicit declaration of function 'set_filter_ftrace_direct_multi' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           err = set_filter_ftrace_direct_multi(tr->fops, ips, tr->multi.bmap->cnt,
                 ^
   kernel/bpf/trampoline.c:1236:8: note: did you mean 'register_ftrace_direct_multi'?
   include/linux/ftrace.h:445:19: note: 'register_ftrace_direct_multi' declared here
   static inline int register_ftrace_direct_multi(struct ftrace_ops *ops, unsigned long addr)
                     ^
   1 error generated.


vim +/set_filter_ftrace_direct_multi +1236 kernel/bpf/trampoline.c

  1226	
  1227	static int trampoline_multi_reset_bmap(struct bpf_trampoline *tr)
  1228	{
  1229		unsigned long *ips;
  1230		int err;
  1231	
  1232		err = btf_bitmap_funcs_resolve(tr->multi.bmap, &ips);
  1233		if (err)
  1234			return err;
  1235		mutex_lock(&tr->mutex);
> 1236		err = set_filter_ftrace_direct_multi(tr->fops, ips, tr->multi.bmap->cnt,
  1237						     (unsigned long) tr->cur_image->image);
  1238		mutex_unlock(&tr->mutex);
  1239		kfree(ips);
  1240		return err;
  1241	}
  1242	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-21 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-21 14:57 [jolsa-perf:bpf/tracing_multi 15/26] kernel/bpf/trampoline.c:1236:8: error: implicit declaration of function 'set_filter_ftrace_direct_multi' is invalid in C99 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox