From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796385847; b=tXOyqqbp+PG1fyJwHT6xi1Dkmq4XsfcWNLjNGoMtP6SY6vZTEZj4T4EzQQTaU9stYA1b BvAuu+BXuVMPBJSWN05iaF2LNLynbWTw/R3dDrbCsT2Hqc3W/YzNITB3LY3OmKDRuOYfi zn2lwbq2aPPcDbXtIvHFXAX8dQ772NWRliCObRlhYZHS5RIIJNUFxid4dSAqYt+pkwGaH WT5VDz0z7EX+c0piJF3JObEwuYfzk7FxWl0JloVIxrjTTw4YNmQB6WuKKQwRNsPUaKWIm yRGK8Ta3V5bIG6FjYOrf6N49XMoP9iUcRtkgnpMx2kSQjpoqKPhTNiEY8KKyBs2rWNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385847; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=QO4ewMu2n3CwVTwPPjp30zfCxPgKcw1eFegbJ81Nrbc=; b=nNyanI9EwJzpnbaRs3EvOnoqskStPbh7f1kVJsQz91x70AgMFes7OyfZXBq7BZuuRmY7 Jnf9f5knwDxH6ZMhmA7gxGjNaGpONoBQBs0d195M6oWy2+ifjLRvc7sbb8Gl/Rj8hUMem oWXy37Xx7GajYDWSiJBMtptain5WAWv366rCRcDpL8Pk/vXs2xcnQ16LWd9DSMbJZtcH+ lBR1gOj/7mqDsU6uE6/xZPigx9fPZlGrNr7wasCvISj4lSIVmoIBQs1KvNJz6P6Ai5fWD Yaqgby9eaMWfP6NlczDFeQOD3cWNmMmGA66/dkGaEICB9XeP3DtRc2aStYwRcc/C67g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=B7bCyCF9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 989BB606A333; Fri, 4 Dec 2026 12:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=B7bCyCF9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 163B61F000C2; Fri, 4 Dec 2026 12:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385847; bh=QO4ewMu2n3CwVTwPPjp30zfCxPgKcw1eFegbJ81Nrbc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=B7bCyCF9eBjcW0CWTJ9oVOYZi5tXpKe+QaXKVaAoW0erO3pltyntScBToqoPHGXiT Yl3jZD8ydMRMTekNaSeQoLM4+i9SmvJzDtmHsGd8iwE+MqBBijQ0gd2ZJxFZeVEhrZ VFVMNJh5SENE71qIFRbtb+35Y2my22k5/YAlXPWY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ingo Molnar , linux-kernel@vger.kernel.org, Kyle Huey , Luo Gengkun , Sasha Levin 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 Message-ID: <20261204100720.692792260@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ingo Molnar [ 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 Cc: linux-kernel@vger.kernel.org Cc: Kyle Huey Signed-off-by: Luo Gengkun Signed-off-by: Sasha Levin --- 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