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

Configure Feed

Select the types of activity you want to include in your feed.

ACPI: bus: Add stub acpi_sleep_state_supported() in non-ACPI cases

acpi_sleep_state_supported() is defined only when CONFIG_ACPI=y. The
function is in acpi_bus.h, and acpi_bus.h can only be used in
CONFIG_ACPI=y cases. Add the stub function to linux/acpi.h to make
compilation successful for !CONFIG_ACPI cases.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/1679298460-11855-3-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>

authored by

Saurabh Sengar and committed by
Wei Liu
1f6277bf a4fea9b7

+5
+5
include/linux/acpi.h
··· 1075 1075 return 0; 1076 1076 } 1077 1077 1078 + static inline bool acpi_sleep_state_supported(u8 sleep_state) 1079 + { 1080 + return false; 1081 + } 1082 + 1078 1083 #endif /* !CONFIG_ACPI */ 1079 1084 1080 1085 #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC