Hi Jiri,

kernel test robot noticed the following build warnings:

[auto build test WARNING on bpf-next/master]

url:    
https://github.com/intel-lab-lkp/linux/commits/Jiri-Olsa/ftrace-Add-ftrace_hash_count-function/20260326-101836
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link:    
https://lore.kernel.org/r/20260324081846.2334094-10-jolsa%40kernel.org
patch subject: [PATCHv4 bpf-next 09/25] bpf: Add 
bpf_trampoline_multi_attach/detach functions
config: x86_64-randconfig-015-20260327 
(https://download.01.org/0day-ci/archive/20260327/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20260327/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

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


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

    91  
  > 92  static void trampoline_lock_all(void)
    93  {
    94          int i;
    95  
    96          for (i = 0; i < TRAMPOLINE_LOCKS_TABLE_SIZE; i++)
    97                  mutex_lock(&trampoline_locks[i].mutex);
    98  }
    99  
 > 100  static void trampoline_unlock_all(void)
   101  {
   102          int i;
   103  
   104          for (i = 0; i < TRAMPOLINE_LOCKS_TABLE_SIZE; i++)
   105                  mutex_unlock(&trampoline_locks[i].mutex);
   106  }
   107  #else
   108  static struct bpf_trampoline *direct_ops_ip_lookup(struct ftrace_ops 
*ops, unsigned long ip)
   109  {
   110          return ops->private;
   111  }
   112  #endif /* CONFIG_HAVE_SINGLE_FTRACE_DIRECT_OPS */
   113  

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

Reply via email to