Skip to content

Commit 3143637

Browse files
sudeep-hollarafaeljw
authored andcommitted
ACPI: processor_idle: Silence missing prototype warnings
Silence the following warnings when built with W=1: | CC drivers/acpi/processor_idle.c | warning: no previous prototype for 'acpi_processor_ffh_lpi_probe' [-Wmissing-prototypes] | int __weak acpi_processor_ffh_lpi_probe(unsigned int cpu) | ^ | CC drivers/acpi/processor_idle.c | warning: no previous prototype for 'acpi_processor_ffh_lpi_enter' [-Wmissing-prototypes] | int __weak acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi) | ^ Reported-by: kernel test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 04068da commit 3143637

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/acpi/processor.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,4 +460,9 @@ static inline void acpi_thermal_cpufreq_exit(struct cpufreq_policy *policy)
460460
}
461461
#endif /* CONFIG_CPU_FREQ */
462462

463+
#ifdef CONFIG_ACPI_PROCESSOR_IDLE
464+
extern int acpi_processor_ffh_lpi_probe(unsigned int cpu);
465+
extern int acpi_processor_ffh_lpi_enter(struct acpi_lpi_state *lpi);
466+
#endif
467+
463468
#endif

0 commit comments

Comments
 (0)