Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rv: Make rv_reacting_on() static

There are no external users left.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20251014-rv-lockdep-v1-2-0b9e51919ea8@linutronix.de
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>

authored by

Thomas Weißschuh and committed by
Gabriele Monaco
68f63cea 4f739ed1

+1 -7
-6
include/linux/rv.h
··· 116 116 void rv_put_task_monitor_slot(int slot); 117 117 118 118 #ifdef CONFIG_RV_REACTORS 119 - bool rv_reacting_on(void); 120 119 int rv_unregister_reactor(struct rv_reactor *reactor); 121 120 int rv_register_reactor(struct rv_reactor *reactor); 122 121 __printf(2, 3) 123 122 void rv_react(struct rv_monitor *monitor, const char *msg, ...); 124 123 #else 125 - static inline bool rv_reacting_on(void) 126 - { 127 - return false; 128 - } 129 - 130 124 __printf(2, 3) 131 125 static inline void rv_react(struct rv_monitor *monitor, const char *msg, ...) 132 126 {
+1 -1
kernel/trace/rv/rv_reactors.c
··· 347 347 * 348 348 * Returns 1 if on, 0 otherwise. 349 349 */ 350 - bool rv_reacting_on(void) 350 + static bool rv_reacting_on(void) 351 351 { 352 352 /* Ensures that concurrent monitors read consistent reacting_on */ 353 353 smp_rmb();