PM: suspend: add a arch_resume_nosmt() prototype
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 May 2023 13:10:58 +0000 (15:10 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 May 2023 17:31:37 +0000 (19:31 +0200)
commitab23ed6e73ecd198bf577077677beaded0a9e718
tree7c04f941e4c2bfe3cabfcb3a8a796f04d785b71e
parent847aea98e01cf084efcb84490b3060af343d1458
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>
include/linux/suspend.h