From: Michael Ellerman Date: Thu, 6 Jul 2017 22:35:55 +0000 (-0700) Subject: kernel/power/snapshot.c: use linux/set_memory.h X-Git-Tag: v5.15~10946^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61f6d09a931c3ab216f43e00505073088d387d05;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Kees Cook Acked-by: Laura Abbott Cc: Daniel Borkmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index b7708e3..22231772 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -30,15 +30,13 @@ #include #include #include +#include #include #include #include #include #include -#ifdef CONFIG_ARCH_HAS_SET_MEMORY -#include -#endif #include "power.h"