Skip to content

Commit 68f63ce

Browse files
t-8chglemco
authored andcommitted
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>
1 parent 4f739ed commit 68f63ce

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

include/linux/rv.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,11 @@ int rv_get_task_monitor_slot(void);
116116
void rv_put_task_monitor_slot(int slot);
117117

118118
#ifdef CONFIG_RV_REACTORS
119-
bool rv_reacting_on(void);
120119
int rv_unregister_reactor(struct rv_reactor *reactor);
121120
int rv_register_reactor(struct rv_reactor *reactor);
122121
__printf(2, 3)
123122
void rv_react(struct rv_monitor *monitor, const char *msg, ...);
124123
#else
125-
static inline bool rv_reacting_on(void)
126-
{
127-
return false;
128-
}
129-
130124
__printf(2, 3)
131125
static inline void rv_react(struct rv_monitor *monitor, const char *msg, ...)
132126
{

kernel/trace/rv/rv_reactors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static bool __read_mostly reacting_on;
347347
*
348348
* Returns 1 if on, 0 otherwise.
349349
*/
350-
bool rv_reacting_on(void)
350+
static bool rv_reacting_on(void)
351351
{
352352
/* Ensures that concurrent monitors read consistent reacting_on */
353353
smp_rmb();

0 commit comments

Comments
 (0)