The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: stable@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	patches@lists.linux.dev, Ingo Molnar <mingo@kernel.org>,
	linux-kernel@vger.kernel.org, Kyle Huey <khuey@kylehuey.com>,
	Luo Gengkun <luogengkun@huaweicloud.com>,
	Sasha Levin <sashal@kernel.org>
Subject: [PATCH 6.6 0715/1167] perf/bpf: Mark perf_event_set_bpf_handler() and perf_event_free_bpf_handler() as inline too
Date: Fri,  4 Dec 2026 19:02:22 +0900	[thread overview]
Message-ID: <20261204100720.692792260@linuxfoundation.org> (raw)
In-Reply-To: <20261204100702.047403948@linuxfoundation.org>

6.6-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Ingo Molnar <mingo@kernel.org>

[ Upstream commit 854dd99b5ddc9d90e31e5f112462a5994dd31810 ]

They can be unused with certain Kconfig variations:

  kernel/events/core.c:9622:13: warning: ‘perf_event_free_bpf_handler’ defined but not used [-Wunused-function]
  kernel/events/core.c:9586:12: warning: ‘perf_event_set_bpf_handler’ defined but not used [-Wunused-function]

Since they are both single-use, mark them inline.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Luo Gengkun <luogengkun@huaweicloud.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 kernel/events/core.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/events/core.c b/kernel/events/core.c
index dd7397a162f1a..fd71555ccc48b 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -9632,9 +9632,9 @@ static int bpf_overflow_handler(struct perf_event *event,
 	return ret;
 }
 
-static int perf_event_set_bpf_handler(struct perf_event *event,
-				      struct bpf_prog *prog,
-				      u64 bpf_cookie)
+static inline int perf_event_set_bpf_handler(struct perf_event *event,
+					     struct bpf_prog *prog,
+					     u64 bpf_cookie)
 {
 	if (event->overflow_handler_context)
 		/* hw breakpoint or kernel counter */
@@ -9668,7 +9668,7 @@ static int perf_event_set_bpf_handler(struct perf_event *event,
 	return 0;
 }
 
-static void perf_event_free_bpf_handler(struct perf_event *event)
+static inline void perf_event_free_bpf_handler(struct perf_event *event)
 {
 	struct bpf_prog *prog = event->prog;
 
-- 
2.53.0




  parent reply	other threads:[~2026-12-04 12:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  9:50 [PATCH 6.6 0000/1167] 6.6.164-rc1 review Greg Kroah-Hartman
2026-12-04  9:53 ` [PATCH 6.6 0193/1167] locking/osq: Switch osq_wait_next()/atomic_cmpxchg() ordering Greg Kroah-Hartman
2026-12-04  9:53 ` [PATCH 6.6 0194/1167] locking/osq: Fix unlink queue corruption Greg Kroah-Hartman
2026-12-04 10:02 ` Greg Kroah-Hartman [this message]
2026-12-04 15:49 ` [PATCH 6.6 0000/1167] 6.6.164-rc1 review SJ Park
2026-12-04 15:55 ` Peter Schneider
2026-12-04 16:01 ` Miguel Ojeda
2026-12-04 17:11 ` Barry K. Nathan

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=20261204100720.692792260@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=khuey@kylehuey.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luogengkun@huaweicloud.com \
    --cc=mingo@kernel.org \
    --cc=patches@lists.linux.dev \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    /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