All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jolsa-perf:bpf/tracing_multi_3 7/14] kernel/bpf/trampoline.c:64:13: warning: 'trampoline_unlock_all' defined but not used
Date: Wed, 11 Feb 2026 23:08:44 +0800	[thread overview]
Message-ID: <202602112254.4MEvLSrl-lkp@intel.com> (raw)

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

             reply	other threads:[~2026-02-11 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-11 15:08 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-02-11 18:36 [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

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=202602112254.4MEvLSrl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jolsa@kernel.org \
    --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 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.