]> Gentwo Git Trees - linux/.git/commitdiff
rv: Fix compilation if !CONFIG_RV_REACTORS
authorGabriele Monaco <gmonaco@redhat.com>
Thu, 13 Nov 2025 15:06:18 +0000 (16:06 +0100)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 2 Dec 2025 17:33:37 +0000 (12:33 -0500)
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: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511131948.vxi5mdjU-lkp@intel.com/
Fixes: 4f739ed19d22 ("rv: Pass va_list to reactors")
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/rv/ltl_monitor.h

index 00c42b36f961a00ee473aa58f14b015308523eb0..eff60cd61106f95ed9d607cc3998550f44a83b9c 100644 (file)
 #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;