public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Sat, 21 Jan 2023 22:57:58 +0800	[thread overview]
Message-ID: <202301212207.XqiRKGL9-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-01-21 14:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202301212207.XqiRKGL9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jolsa@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox