summaryrefslogtreecommitdiffstats
path: root/kernel/power/snapshot.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-07-06 18:35:55 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-06 19:24:30 -0400
commit61f6d09a931c3ab216f43e00505073088d387d05 (patch)
treea7c16813fe845d33d27565ad21fd40b65dc64334 /kernel/power/snapshot.c
parent938f846492d6682584cbe4f3f19c4ebffec46311 (diff)
kernel/power/snapshot.c: use linux/set_memory.h
This header always exists, so doesn't require an ifdef around its inclusion. When CONFIG_ARCH_HAS_SET_MEMORY=y it includes the asm header, otherwise it provides empty versions of the set_memory_xx() routines. Link: http://lkml.kernel.org/r/1498717781-29151-2-git-send-email-mpe@ellerman.id.au Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Laura Abbott <labbott@redhat.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/power/snapshot.c')
-rw-r--r--kernel/power/snapshot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index b7708e319941..222317721c5a 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -30,15 +30,13 @@
30#include <linux/slab.h> 30#include <linux/slab.h>
31#include <linux/compiler.h> 31#include <linux/compiler.h>
32#include <linux/ktime.h> 32#include <linux/ktime.h>
33#include <linux/set_memory.h>
33 34
34#include <linux/uaccess.h> 35#include <linux/uaccess.h>
35#include <asm/mmu_context.h> 36#include <asm/mmu_context.h>
36#include <asm/pgtable.h> 37#include <asm/pgtable.h>
37#include <asm/tlbflush.h> 38#include <asm/tlbflush.h>
38#include <asm/io.h> 39#include <asm/io.h>
39#ifdef CONFIG_ARCH_HAS_SET_MEMORY
40#include <asm/set_memory.h>
41#endif
42 40
43#include "power.h" 41#include "power.h"
44 42