Skip to content

Commit ab23ed6

Browse files
arndbrafaeljw
authored andcommitted
PM: suspend: add a arch_resume_nosmt() prototype
The arch_resume_nosmt() has a __weak definition, plus an x86 specific override, but no prototype that ensures the two have the same arguments. This causes a W=1 warning: arch/x86/power/hibernate.c:189:5: error: no previous prototype for 'arch_resume_nosmt' [-Werror=missing-prototypes] Add the prototype in linux/suspend.h, which is included in both places. Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 847aea9 commit ab23ed6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/suspend.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ static inline int hibernate_quiet_exec(int (*func)(void *data), void *data) {
471471
}
472472
#endif /* CONFIG_HIBERNATION */
473473

474+
int arch_resume_nosmt(void);
475+
474476
#ifdef CONFIG_HIBERNATION_SNAPSHOT_DEV
475477
int is_hibernate_resume_dev(dev_t dev);
476478
#else

0 commit comments

Comments
 (0)