All of lore.kernel.org
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/tracing_multi_3 7/14] kernel/bpf/trampoline.c:64:13: warning: 'trampoline_unlock_all' defined but not used
@ 2026-02-11 15:08 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-02-11 15:08 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_3
head:   e88de144ad6e264c1df0286d6a975136d7a059c2
commit: 5e011f72271142e5e37a81d4c8eb725d0092de20 [7/14] bpf: Add bpf_trampoline_multi_attach/detach functions
config: arm-randconfig-002-20260211 (https://download.01.org/0day-ci/archive/20260211/202602112254.4MEvLSrl-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602112254.4MEvLSrl-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602112254.4MEvLSrl-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/bpf/trampoline.c: In function 'trampoline_locks_lookup':
   kernel/bpf/trampoline.c:43:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     return &trampoline_locks[hash_64((u64) tr, TRAMPOLINE_LOCKS_BITS)].mutex;
                                      ^
   At top level:
   kernel/bpf/trampoline.c:793:12: warning: 'bpf_trampoline_update' defined but not used [-Wunused-function]
    static int bpf_trampoline_update(struct bpf_trampoline *tr, bool lock_direct_mutex)
               ^~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/trampoline.c:64:13: warning: 'trampoline_unlock_all' defined but not used [-Wunused-function]
    static void trampoline_unlock_all(void)
                ^~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/trampoline.c:56:13: warning: 'trampoline_lock_all' defined but not used [-Wunused-function]
    static void trampoline_lock_all(void)
                ^~~~~~~~~~~~~~~~~~~


vim +/trampoline_unlock_all +64 kernel/bpf/trampoline.c

    40	
    41	static struct mutex *trampoline_locks_lookup(struct bpf_trampoline *tr)
    42	{
  > 43		return &trampoline_locks[hash_64((u64) tr, TRAMPOLINE_LOCKS_BITS)].mutex;
    44	}
    45	
    46	static void trampoline_lock(struct bpf_trampoline *tr)
    47	{
    48		mutex_lock(trampoline_locks_lookup(tr));
    49	}
    50	
    51	static void trampoline_unlock(struct bpf_trampoline *tr)
    52	{
    53		mutex_unlock(trampoline_locks_lookup(tr));
    54	}
    55	
  > 56	static void trampoline_lock_all(void)
    57	{
    58		int i;
    59	
    60		for (i = 0; i < TRAMPOLINE_LOCKS_TABLE_SIZE; i++)
    61			mutex_lock(&trampoline_locks[i].mutex);
    62	}
    63	
  > 64	static void trampoline_unlock_all(void)
    65	{
    66		int i;
    67	
    68		for (i = 0; i < TRAMPOLINE_LOCKS_TABLE_SIZE; i++)
    69			mutex_unlock(&trampoline_locks[i].mutex);
    70	}
    71	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [jolsa-perf:bpf/tracing_multi_3 7/14] kernel/bpf/trampoline.c:64:13: warning: 'trampoline_unlock_all' defined but not used
@ 2026-02-11 18:36 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-02-11 18:36 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_3
head:   e88de144ad6e264c1df0286d6a975136d7a059c2
commit: 5e011f72271142e5e37a81d4c8eb725d0092de20 [7/14] bpf: Add bpf_trampoline_multi_attach/detach functions
config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260211/202602111959.tRfzux29-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602111959.tRfzux29-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602111959.tRfzux29-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/bpf/trampoline.c:64:13: warning: 'trampoline_unlock_all' defined but not used [-Wunused-function]
      64 | static void trampoline_unlock_all(void)
         |             ^~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/trampoline.c:56:13: warning: 'trampoline_lock_all' defined but not used [-Wunused-function]
      56 | static void trampoline_lock_all(void)
         |             ^~~~~~~~~~~~~~~~~~~


vim +/trampoline_unlock_all +64 kernel/bpf/trampoline.c

    55	
  > 56	static void trampoline_lock_all(void)
    57	{
    58		int i;
    59	
    60		for (i = 0; i < TRAMPOLINE_LOCKS_TABLE_SIZE; i++)
    61			mutex_lock(&trampoline_locks[i].mutex);
    62	}
    63	
  > 64	static void trampoline_unlock_all(void)
    65	{
    66		int i;
    67	
    68		for (i = 0; i < TRAMPOLINE_LOCKS_TABLE_SIZE; i++)
    69			mutex_unlock(&trampoline_locks[i].mutex);
    70	}
    71	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-11 18:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11 15:08 [jolsa-perf:bpf/tracing_multi_3 7/14] kernel/bpf/trampoline.c:64:13: warning: 'trampoline_unlock_all' defined but not used kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-02-11 18:36 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.