Commit bbaacdc3 authored by Gabriele Monaco's avatar Gabriele Monaco Committed by Steven Rostedt (Google)
Browse files

rv: Fix compilation if !CONFIG_RV_REACTORS

The kernel test robot spotted a compilation error if reactors are
disabled.

Fix the warning by keeping LTL monitor variable as always static.

Cc: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20251113150618.185479-2-gmonaco@redhat.com


Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511131948.vxi5mdjU-lkp@intel.com/


Fixes: 4f739ed1 ("rv: Pass va_list to reactors")
Signed-off-by: default avatarGabriele Monaco <gmonaco@redhat.com>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent b30f635b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -17,12 +17,7 @@
#endif

#define RV_MONITOR_NAME CONCATENATE(rv_, MONITOR_NAME)

#ifdef CONFIG_RV_REACTORS
static struct rv_monitor RV_MONITOR_NAME;
#else
extern struct rv_monitor RV_MONITOR_NAME;
#endif

static int ltl_monitor_slot = RV_PER_TASK_MONITOR_INIT;