From: Karl Mehltretter <kmehltretter@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>,
Gabriele Monaco <gmonaco@redhat.com>
Cc: Karl Mehltretter <kmehltretter@gmail.com>,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Nam Cao <namcao@linutronix.de>,
linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: [PATCH] rv: Select RV_LTL_MONITOR for all LTL monitors
Date: Mon, 30 Nov 2026 01:53:28 +0100 [thread overview]
Message-ID: <20261130005328.11709-1-kmehltretter@gmail.com> (raw)
Enabling the wakeup monitor without the sleep and pagefault monitors
breaks the build:
kernel/trace/rv/monitors/wakeup/wakeup.h:23:31: error: 'RV_MAX_LTL_ATOM' undeclared here (not in a function)
RV_MAX_LTL_ATOM and the members of struct ltl_monitor are only defined
with RV_LTL_MONITOR. The sleep and pagefault monitors select it, but the
wakeup monitor only selects LTL_MON_EVENTS_ID. So do the Kconfig files
rvgen generates for LTL monitors.
Select RV_LTL_MONITOR from LTL_MON_EVENTS_ID, like HA_MON_EVENTS_ID
selects RV_HA_MONITOR.
Fixes: 6fdaab4e1636 ("rv/rtapp: Add wakeup monitor")
Cc: stable@vger.kernel.org
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
---
Assisted by an LLM.
Build-tested on x86_64 with GCC 14.2, CONFIG_RV_MON_WAKEUP=y,
CONFIG_RV_MON_SLEEP=n and CONFIG_RV_MON_PAGEFAULT=n. Without this patch,
kernel/trace/rv/ fails to build. With it, the whole kernel builds
without warnings.
kernel/trace/rv/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/trace/rv/Kconfig b/kernel/trace/rv/Kconfig
index 9bfd429ff..24a400b83 100644
--- a/kernel/trace/rv/Kconfig
+++ b/kernel/trace/rv/Kconfig
@@ -18,6 +18,7 @@ config DA_MON_EVENTS_ID
config LTL_MON_EVENTS_ID
select RV_MON_EVENTS
+ select RV_LTL_MONITOR
bool
config RV_LTL_MONITOR
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
--
2.47.3
reply other threads:[~2026-11-30 0:53 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=20261130005328.11709-1-kmehltretter@gmail.com \
--to=kmehltretter@gmail.com \
--cc=gmonaco@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=namcao@linutronix.de \
--cc=rostedt@goodmis.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
all inboxes | Powered by JetHome®