Skip to content

Commit d96d30d

Browse files
sudeep-hollarafaeljw
authored andcommitted
ACPI: PM: Silence missing prototype warning
Silence the following warning when built with W=1: | CC drivers/acpi/device_pm.c | warning: no previous prototype for function 'acpi_subsys_restore_early' [-Wmissing-prototypes] | int acpi_subsys_restore_early(struct device *dev) | ^ Reported-by: kernel test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dc776bd commit d96d30d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/acpi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,6 +1136,7 @@ int acpi_subsys_freeze(struct device *dev);
11361136
int acpi_subsys_poweroff(struct device *dev);
11371137
void acpi_ec_mark_gpe_for_wake(void);
11381138
void acpi_ec_set_gpe_wake_mask(u8 action);
1139+
int acpi_subsys_restore_early(struct device *dev);
11391140
#else
11401141
static inline int acpi_subsys_prepare(struct device *dev) { return 0; }
11411142
static inline void acpi_subsys_complete(struct device *dev) {}
@@ -1144,6 +1145,7 @@ static inline int acpi_subsys_suspend_noirq(struct device *dev) { return 0; }
11441145
static inline int acpi_subsys_suspend(struct device *dev) { return 0; }
11451146
static inline int acpi_subsys_freeze(struct device *dev) { return 0; }
11461147
static inline int acpi_subsys_poweroff(struct device *dev) { return 0; }
1148+
static inline int acpi_subsys_restore_early(struct device *dev) { return 0; }
11471149
static inline void acpi_ec_mark_gpe_for_wake(void) {}
11481150
static inline void acpi_ec_set_gpe_wake_mask(u8 action) {}
11491151
#endif

0 commit comments

Comments
 (0)