OSDN Git Service

PM: hibernate: powerpc: Expose pfn_is_nosave() prototype
authorMathieu Malaterre <malat@debian.org>
Fri, 24 May 2019 10:44:18 +0000 (12:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Jun 2019 08:48:56 +0000 (10:48 +0200)
commit1ec0cd8286f35988134e05367ab5e66213b84e7c
tree0c27b66af15b24f39ffc6c05c20a87da44dcf5fe
parentd1fdb6d8f6a4109a4263176c84b899076a5f8008
PM: hibernate: powerpc: Expose pfn_is_nosave() prototype

The declaration for pfn_is_nosave is only available in
kernel/power/power.h. Since this function can be override in arch,
expose it globally. Having a prototype will make sure to avoid warning
(sometime treated as error with W=1) such as:

  arch/powerpc/kernel/suspend.c:18:5: error: no previous prototype for 'pfn_is_nosave' [-Werror=missing-prototypes]

This moves the declaration into a globally visible header file and add
missing include to avoid a warning on powerpc.

Also remove the duplicated prototypes since not required anymore.

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/powerpc/kernel/suspend.c
arch/s390/kernel/entry.h
include/linux/suspend.h
kernel/power/power.h