Skip to contentSkip to conversation

treewide: decouple cacheflush.h and set_memory.h

PATCH New [email protected] 1 participant 1 message May 8, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 84/114 treewide: decouple cacheflush.h and set_memory.h

From: Laura Abbott <[email protected]>
Subject: treewide: decouple cacheflush.h and set_memory.h

Now that all call sites, completely decouple cacheflush.h and set_memory.h

---

 arch/arm/include/asm/cacheflush.h   |    1 -
 arch/arm64/include/asm/cacheflush.h |    1 -
 arch/s390/include/asm/Kbuild        |    1 +
 arch/s390/include/asm/cacheflush.h  |    8 --------
 arch/x86/include/asm/cacheflush.h   |    1 -
 arch/x86/kernel/kprobes/core.c      |    1 +
 arch/x86/kernel/kprobes/opt.c       |    1 +
 7 files changed, 3 insertions(+), 11 deletions(-)
arch/arm/include/asm/cacheflush.h renamed from arch/arm/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh +0 -1
diff -puN arch/arm/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh arch/arm/include/asm/cacheflush.h
@@ -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)
 
arch/arm64/include/asm/cacheflush.h renamed from arch/arm64/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh +0 -1
diff -puN arch/arm64/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh arch/arm64/include/asm/cacheflush.h
@@ -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
arch/s390/include/asm/Kbuild renamed from arch/s390/include/asm/Kbuild~treewide-decouple-cacheflushh-and-set_memoryh +1 -0
diff -puN arch/s390/include/asm/Kbuild~treewide-decouple-cacheflushh-and-set_memoryh arch/s390/include/asm/Kbuild
@@ -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
arch/s390/include/asm/cacheflush.h deleted +0 -8
diff -puN arch/s390/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh /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 */
arch/x86/include/asm/cacheflush.h renamed from arch/x86/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh +0 -1
diff -puN arch/x86/include/asm/cacheflush.h~treewide-decouple-cacheflushh-and-set_memoryh arch/x86/include/asm/cacheflush.h
@@ -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);
 
arch/x86/kernel/kprobes/core.c renamed from arch/x86/kernel/kprobes/core.c~treewide-decouple-cacheflushh-and-set_memoryh +1 -0
diff -puN arch/x86/kernel/kprobes/core.c~treewide-decouple-cacheflushh-and-set_memoryh arch/x86/kernel/kprobes/core.c
@@ -61,6 +61,7 @@
 #include <asm/alternative.h>
 #include <asm/insn.h>
 #include <asm/debugreg.h>
+#include <asm/set_memory.h>
 
 #include "common.h"
 
arch/x86/kernel/kprobes/opt.c renamed from arch/x86/kernel/kprobes/opt.c~treewide-decouple-cacheflushh-and-set_memoryh +1 -0
diff -puN arch/x86/kernel/kprobes/opt.c~treewide-decouple-cacheflushh-and-set_memoryh arch/x86/kernel/kprobes/opt.c
@@ -37,6 +37,7 @@
 #include <asm/alternative.h>
 #include <asm/insn.h>
 #include <asm/debugreg.h>
+#include <asm/set_memory.h>
 
 #include "common.h"
 

_