All of lore.kernel.org
 help / color / mirror / Atom feed
* [perf:tmp.bpf/bpf_perf_enable 1/3] kernel/trace/bpf_trace.c:1329:36: warning: unused variable 'bpf_perf_event_enable_proto'
@ 2021-04-06 19:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-06 19:53 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2796 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tmp.bpf/bpf_perf_enable
head:   ffaf5ffe4f2f0957ec543491a1a9e7313dd810fe
commit: cd43e92556733027b6927485f542f25ae5b41cad [1/3] bpf: Introduce helpers to enable/disable perf event fds in a map
config: x86_64-randconfig-r025-20210406 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a46f59a747a7273cc439efaf3b4f98d8b63d2f20)
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=cd43e92556733027b6927485f542f25ae5b41cad
        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 cd43e92556733027b6927485f542f25ae5b41cad
        # 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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34642 bytes --]

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

only message in thread, other threads:[~2021-04-06 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 19:53 [perf:tmp.bpf/bpf_perf_enable 1/3] kernel/trace/bpf_trace.c:1329:36: warning: unused variable 'bpf_perf_event_enable_proto' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.