PM / hibernate: Use CONFIG_HAVE_SET_MEMORY for include condition
authorBalbir Singh <bsingharora@gmail.com>
Sat, 3 Jun 2017 10:52:32 +0000 (20:52 +1000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Jun 2017 00:05:28 +0000 (02:05 +0200)
commit49368a47f6dc1b256e3b83813da5c9b0731fe268
treeb40184b30e1c3a26c4d743aa659030f5ad6b2eb5
parentc0944883c97c0ddc71da67cc731590a7c878a1a2
PM / hibernate: Use CONFIG_HAVE_SET_MEMORY for include condition

Kbuild reported a build failure when CONFIG_STRICT_KERNEL_RWX was
enabled on powerpc. We don't yet have ARCH_HAS_SET_MEMORY and ppc32
saw a build failure.

I've only done a basic compile test with a config that has
hibernation enabled.

Fixes: 50327ddfbc92 (kernel/power/snapshot.c: use set_memory.h header)
Reported-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/snapshot.c