treewide: decouple cacheflush.h and set_memory.h
authorLaura Abbott <labbott@redhat.com>
Mon, 8 May 2017 22:58:47 +0000 (15:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:14 +0000 (17:15 -0700)
Now that all call sites, completely decouple cacheflush.h and
set_memory.h

[sfr@canb.auug.org.au: kprobes/x86: merge fix for set_memory.h decoupling]
Link: http://lkml.kernel.org/r/20170418180903.10300fd3@canb.auug.org.au
Link: http://lkml.kernel.org/r/1488920133-27229-17-git-send-email-labbott@redhat.com
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm/include/asm/cacheflush.h
arch/arm64/include/asm/cacheflush.h
arch/s390/include/asm/Kbuild
arch/s390/include/asm/cacheflush.h [deleted file]
arch/x86/include/asm/cacheflush.h
arch/x86/kernel/kprobes/core.c
arch/x86/kernel/kprobes/opt.c

index 1cb9d118bb16d1c5bc94ca805288d5d53759e522..d69bebf697e76d2003bb671645290c938a156abd 100644 (file)
@@ -16,7 +16,6 @@
 #include <asm/shmparam.h>
 #include <asm/cachetype.h>
 #include <asm/outercache.h>
-#include <asm/set_memory.h>
 
 #define CACHE_COLOUR(vaddr)    ((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT)
 
index 0927f47607e24c68b8ce5d540c809d63bcba9205..d74a284abdc2f1f39f6b275a7e0818db2c6ae193 100644 (file)
@@ -20,7 +20,6 @@
 #define __ASM_CACHEFLUSH_H
 
 #include <linux/mm.h>
-#include <asm/set_memory.h>
 
 /*
  * This flag is used to indicate that the page pointed to by a pte is clean
index 7e3481eb2174e8e3fe19eb66c35eab035e4f4a77..45092b12f54f530296f79cfbe4cb4b7c6991d889 100644 (file)
@@ -1,4 +1,5 @@
 generic-y += asm-offsets.h
+generic-y += cacheflush.h
 generic-y += clkdev.h
 generic-y += dma-contiguous.h
 generic-y += div64.h
diff --git a/arch/s390/include/asm/cacheflush.h b/arch/s390/include/asm/cacheflush.h
deleted file mode 100644 (file)
index afe2965..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef _S390_CACHEFLUSH_H
-#define _S390_CACHEFLUSH_H
-
-/* Caches aren't brain-dead on the s390. */
-#include <asm-generic/cacheflush.h>
-#include <asm/set_memory.h>
-
-#endif /* _S390_CACHEFLUSH_H */
index 3d7db6f35aeb8b95c4af063684ab7df62d1ddecb..8b4140f6724f4cfe4cf89135b9e0547baa527d94 100644 (file)
@@ -4,7 +4,6 @@
 /* Caches aren't brain-dead on the intel. */
 #include <asm-generic/cacheflush.h>
 #include <asm/special_insns.h>
-#include <asm/set_memory.h>
 
 void clflush_cache_range(void *addr, unsigned int size);
 
index 19e1f2a6d7b0a74cbae05aaca928d6194d7e0f10..5b2bbfbb371284942b2ce95a3b2495eb9ecc8981 100644 (file)
@@ -61,6 +61,7 @@
 #include <asm/alternative.h>
 #include <asm/insn.h>
 #include <asm/debugreg.h>
+#include <asm/set_memory.h>
 
 #include "common.h"
 
index 9aadff3d0902a910afeb2ea8a82e4bef53e3a299..901c640d152f7cb76529c38e5ab5576ca2d07c9f 100644 (file)
@@ -37,6 +37,7 @@
 #include <asm/alternative.h>
 #include <asm/insn.h>
 #include <asm/debugreg.h>
+#include <asm/set_memory.h>
 
 #include "common.h"