* [PATCH v3 06/19] perf: Always inline the empty perf_lopwr_cb() stub [not found] <20261125020603.3934222-1-sashal@kernel.org> @ 2026-11-25 2:05 ` Sasha Levin 2026-11-26 2:07 ` sashiko-bot 0 siblings, 1 reply; 2+ messages in thread From: Sasha Levin @ 2026-11-25 2:05 UTC (permalink / raw) To: linux-kernel Cc: Adrian Hunter, Alexander Shishkin, Arnaldo Carvalho de Melo, Chuck Wolber, Ian Rogers, Ingo Molnar, James Clark, Jiri Olsa, Josh Poimboeuf, linux-perf-users, Marco Elver, Mark Rutland, Masami Hiramatsu, Namhyung Kim, Peter Zijlstra, Thomas Gleixner perf_lopwr_cb() is called from the noinstr acpi_idle_do_entry(). The x86 implementation is __always_inline, but the empty fallback is a plain static inline function, which the compiler won't inline into noinstr code when building with code coverage instrumentation: vmlinux.o: warning: objtool: acpi_idle_do_entry+0x4: call to perf_lopwr_cb() leaves .noinstr.text section Make the stub __always_inline as well. Signed-off-by: Sasha Levin <sashal@kernel.org> --- include/linux/perf_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index e1e11500df097..09e4d780288e6 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -2142,7 +2142,7 @@ typedef int (perf_snapshot_branch_stack_t)(struct perf_branch_entry *entries, DECLARE_STATIC_CALL(perf_snapshot_branch_stack, perf_snapshot_branch_stack_t); #ifndef PERF_NEEDS_LOPWR_CB -static inline void perf_lopwr_cb(bool mode) +static __always_inline void perf_lopwr_cb(bool mode) { } #endif -- 2.53.0 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 06/19] perf: Always inline the empty perf_lopwr_cb() stub 2026-11-25 2:05 ` [PATCH v3 06/19] perf: Always inline the empty perf_lopwr_cb() stub Sasha Levin @ 2026-11-26 2:07 ` sashiko-bot 0 siblings, 0 replies; 2+ messages in thread From: sashiko-bot @ 2026-11-26 2:07 UTC (permalink / raw) To: Sasha Levin; +Cc: linux-perf-users Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] perf: missing Fixes trailer for perf_lopwr_cb() __always_inline fix -- commit 625a49957e940aaa12897a072cc5c97dba921840 Author: Sasha Levin <sashal@kernel.org> > perf: Always inline the empty perf_lopwr_cb() stub > > perf_lopwr_cb() is called from the noinstr acpi_idle_do_entry(). The > x86 implementation is __always_inline, but the empty fallback is a > plain static inline function, which the compiler won't inline into > noinstr code when building with code coverage instrumentation: > > vmlinux.o: warning: objtool: acpi_idle_do_entry+0x4: call to perf_lopwr_cb() leaves .noinstr.text section > > Make the stub __always_inline as well. > > Signed-off-by: Sasha Levin <sashal@kernel.org> [Severity: Low] This fixes a noinstr violation on the perf_lopwr_cb() fallback stub. Should it include: Fixes: 2a606a18cd67 ("ACPI: Add perf low power callback") -- Sashiko AI review · https://sashiko.dev/#/patchset/20261125020603.3934222-1-sashal@kernel.org?part=6 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 2:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261125020603.3934222-1-sashal@kernel.org>
2026-11-25 2:05 ` [PATCH v3 06/19] perf: Always inline the empty perf_lopwr_cb() stub Sasha Levin
2026-11-26 2:07 ` sashiko-bot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox