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

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 <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Arnd Bergmann and committed by
Rafael J. Wysocki
ab23ed6e 847aea98

+2
+2
include/linux/suspend.h
··· 471 471 } 472 472 #endif /* CONFIG_HIBERNATION */ 473 473 474 + int arch_resume_nosmt(void); 475 + 474 476 #ifdef CONFIG_HIBERNATION_SNAPSHOT_DEV 475 477 int is_hibernate_resume_dev(dev_t dev); 476 478 #else