ACPI: PM: s2idle: fix section mismatch warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 1 Jun 2023 21:33:15 +0000 (23:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 5 Jun 2023 17:15:44 +0000 (19:15 +0200)
commit89d5b7178d4edc2a5d7b6070923fe2d2125ec52a
treefc436b91c7703ae80ef1bb8f8afa38d9aaf4a8f3
parent9561de3a55bed6bdd44a12820ba81ec416e705a7
ACPI: PM: s2idle: fix section mismatch warning

The acpi_sleep_suspend_setup() function is missing an __init annotation,
which causes a warning in rare configurations that end up not inlining
it into its caller:

WARNING: modpost: vmlinux.o: section mismatch in reference: acpi_sleep_suspend_setup (section: .text) -> acpi_s2idle_setup (section: .init.text)

It's only called from an __init function, so adding the annotation is
correct here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c