tree:
https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
tmp.bpf/bpf_perf_enable
head: 1ba795701061b272d73de6f55e43db6116c1cf36
commit: 1ba795701061b272d73de6f55e43db6116c1cf36 [1/1] WIP: bpf_perf_event_(dis,en)able
config: x86_64-randconfig-r032-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
fcc1ce00931751ac02498986feb37744e9ace8de)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/commit/?id...
git remote add perf
https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
git fetch --no-tags perf tmp.bpf/bpf_perf_enable
git checkout 1ba795701061b272d73de6f55e43db6116c1cf36
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/trace/bpf_trace.c:1329:36: warning: unused variable
'bpf_perf_event_enable_proto' [-Wunused-const-variable]
static const
struct bpf_func_proto bpf_perf_event_enable_proto = {
^
> kernel/trace/bpf_trace.c:1342:36: warning: unused variable
'bpf_perf_event_disable_proto' [-Wunused-const-variable]
static const
struct bpf_func_proto bpf_perf_event_disable_proto = {
^
2 warnings generated.
vim +/bpf_perf_event_enable_proto +1329 kernel/trace/bpf_trace.c
1328
1329 static const struct bpf_func_proto bpf_perf_event_enable_proto =
{
1330 .func = bpf_perf_event_enable,
1331 .gpl_only = true,
1332 .ret_type = RET_INTEGER,
1333 .arg1_type = ARG_CONST_MAP_PTR,
1334 .arg2_type = ARG_ANYTHING,
1335 };
1336
1337 BPF_CALL_2(bpf_perf_event_disable, struct bpf_map *, map, u64, flags)
1338 {
1339 return bpf_map__perf_event_set_state(map, flags, perf_event_disable);
1340 }
1341
1342 static const struct bpf_func_proto bpf_perf_event_disable_proto
= {
1343 .func = bpf_perf_event_disable,
1344 .gpl_only = true,
1345 .ret_type = RET_INTEGER,
1346 .arg1_type = ARG_CONST_MAP_PTR,
1347 .arg2_type = ARG_ANYTHING,
1348 };
1349
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org