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

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: 1fecfdbb7acc ("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>

authored by

Borislav Petkov and committed by
Rafael J. Wysocki
3ad1c8ef ba4f184e

+2
+2
kernel/rcu/tree.c
··· 673 673 lockdep_assert_irqs_disabled(); 674 674 rcu_eqs_enter(false); 675 675 } 676 + EXPORT_SYMBOL_GPL(rcu_idle_enter); 676 677 677 678 #ifdef CONFIG_NO_HZ_FULL 678 679 /** ··· 887 886 rcu_eqs_exit(false); 888 887 local_irq_restore(flags); 889 888 } 889 + EXPORT_SYMBOL_GPL(rcu_idle_exit); 890 890 891 891 #ifdef CONFIG_NO_HZ_FULL 892 892 /**