kernel/power/snapshot.c: use linux/set_memory.h
Subsystems (2)
PATCH 11/108 kernel/power/snapshot.c: use linux/set_memory.h
From: Michael Ellerman <[email protected]>
Subject: 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.
Signed-off-by Michael Ellerman <[email protected]>
Acked-by Kees Cook <[email protected]>
Acked-by Laura Abbott <[email protected]>
Cc Daniel Borkmann <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
kernel/power/snapshot.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
kernel/power/snapshot.c renamed from kernel/power/snapshot.c~pm-hibernate-use-linux-set_memoryh +1 -3
@@ -30,15 +30,13 @@#include <linux/slab.h> #include <linux/compiler.h> #include <linux/ktime.h> +#include <linux/set_memory.h> #include <linux/uaccess.h> #include <asm/mmu_context.h> #include <asm/pgtable.h> #include <asm/tlbflush.h> #include <asm/io.h> -#ifdef CONFIG_ARCH_HAS_SET_MEMORY -#include <asm/set_memory.h> -#endif #include "power.h"
_