Skip to content

Commit 3ad1c8e

Browse files
suryasaimadhurafaeljw
authored andcommitted
rcu/tree: Export rcu_idle_{enter,exit} to modules
Fix this link error: ERROR: modpost: "rcu_idle_enter" [drivers/acpi/processor.ko] undefined! ERROR: modpost: "rcu_idle_exit" [drivers/acpi/processor.ko] undefined! when CONFIG_ACPI_PROCESSOR is built as module. PeterZ says that in light of ARM needing those soon too, they should simply be exported. Fixes: 1fecfdb ("ACPI: processor: Take over RCU-idle for C3-BM idle") Reported-by: Sven Joachim <svenjoac@gmx.de> Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Paul E. McKenney <paulmckrcu@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent ba4f184 commit 3ad1c8e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/rcu/tree.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ void rcu_idle_enter(void)
673673
lockdep_assert_irqs_disabled();
674674
rcu_eqs_enter(false);
675675
}
676+
EXPORT_SYMBOL_GPL(rcu_idle_enter);
676677

677678
#ifdef CONFIG_NO_HZ_FULL
678679
/**
@@ -886,6 +887,7 @@ void rcu_idle_exit(void)
886887
rcu_eqs_exit(false);
887888
local_irq_restore(flags);
888889
}
890+
EXPORT_SYMBOL_GPL(rcu_idle_exit);
889891

890892
#ifdef CONFIG_NO_HZ_FULL
891893
/**

0 commit comments

Comments
 (0)