public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: kernel/kprobes.c:520:28: warning: variable 'kprobe_optimizer_task' set but not used
Date: Mon, 30 Mar 2026 10:52:15 +0800	[thread overview]
Message-ID: <202603301017.4Sho3F0a-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-03-30  2:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202603301017.4Sho3F0a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mhiramat@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox