public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* kernel/kprobes.c:520:28: warning: variable 'kprobe_optimizer_task' set but not used
@ 2026-03-30  2:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-30  2:52 UTC (permalink / raw)
  To: Masami Hiramatsu (Google); +Cc: llvm, oe-kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7aaa8047eafd0bd628065b15757d9b48c5f9c07d
commit: 73c12f209462d1712c5f55f3021a1b65b2e084c3 kprobes: Use dedicated kthread for kprobe optimizer
date:   8 weeks ago
config: powerpc64-randconfig-002-20260330 (https://download.01.org/0day-ci/archive/20260330/202603301017.4Sho3F0a-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 2cd67b8b69f78e3f95918204320c3075a74ba16c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260330/202603301017.4Sho3F0a-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/202603301017.4Sho3F0a-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/kprobes.c:58:12: warning: variable 'kprobes_initialized' set but not used [-Wunused-but-set-global]
      58 | static int kprobes_initialized;
         |            ^
>> kernel/kprobes.c:520:28: warning: variable 'kprobe_optimizer_task' set but not used [-Wunused-but-set-global]
     520 | static struct task_struct *kprobe_optimizer_task;
         |                            ^
   2 warnings generated.


vim +/kprobe_optimizer_task +520 kernel/kprobes.c

   518	
   519	static void optimize_kprobe(struct kprobe *p);
 > 520	static struct task_struct *kprobe_optimizer_task;
   521	static wait_queue_head_t kprobe_optimizer_wait;
   522	static atomic_t optimizer_state;
   523	enum {
   524		OPTIMIZER_ST_IDLE = 0,
   525		OPTIMIZER_ST_KICKED = 1,
   526		OPTIMIZER_ST_FLUSHING = 2,
   527	};
   528	

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

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

only message in thread, other threads:[~2026-03-30  2:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30  2:52 kernel/kprobes.c:520:28: warning: variable 'kprobe_optimizer_task' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox