mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Gabriele Monaco
parent
4f739ed19d
commit
68f63cea46
@@ -116,17 +116,11 @@ int rv_get_task_monitor_slot(void);
|
||||
void rv_put_task_monitor_slot(int slot);
|
||||
|
||||
#ifdef CONFIG_RV_REACTORS
|
||||
bool rv_reacting_on(void);
|
||||
int rv_unregister_reactor(struct rv_reactor *reactor);
|
||||
int rv_register_reactor(struct rv_reactor *reactor);
|
||||
__printf(2, 3)
|
||||
void rv_react(struct rv_monitor *monitor, const char *msg, ...);
|
||||
#else
|
||||
static inline bool rv_reacting_on(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
__printf(2, 3)
|
||||
static inline void rv_react(struct rv_monitor *monitor, const char *msg, ...)
|
||||
{
|
||||
|
||||
@@ -347,7 +347,7 @@ static bool __read_mostly reacting_on;
|
||||
*
|
||||
* Returns 1 if on, 0 otherwise.
|
||||
*/
|
||||
bool rv_reacting_on(void)
|
||||
static bool rv_reacting_on(void)
|
||||
{
|
||||
/* Ensures that concurrent monitors read consistent reacting_on */
|
||||
smp_rmb();
|
||||
|
||||
Reference in New Issue
Block a user