diff options
author | Laura Abbott <labbott@redhat.com> | 2017-05-08 18:58:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-08 20:15:14 -0400 |
commit | e6ccbff0e90cf4bf012bf369dbdaf84c6faaedaa (patch) | |
tree | 8c4123c16dfd3fe6c9066af46b9b276669b9fc08 | |
parent | 880d5a36efe7479287c36194bffdcd6d7a183bab (diff) |
treewide: decouple cacheflush.h and set_memory.h
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>
-rw-r--r-- | arch/arm/include/asm/cacheflush.h | 1 | ||||
-rw-r--r-- | arch/arm64/include/asm/cacheflush.h | 1 | ||||
-rw-r--r-- | arch/s390/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/s390/include/asm/cacheflush.h | 8 | ||||
-rw-r--r-- | arch/x86/include/asm/cacheflush.h | 1 | ||||
-rw-r--r-- | arch/x86/kernel/kprobes/core.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/kprobes/opt.c | 1 |
7 files changed, 3 insertions, 11 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 1cb9d118bb16..d69bebf697e7 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <asm/shmparam.h> | 16 | #include <asm/shmparam.h> |
17 | #include <asm/cachetype.h> | 17 | #include <asm/cachetype.h> |
18 | #include <asm/outercache.h> | 18 | #include <asm/outercache.h> |
19 | #include <asm/set_memory.h> | ||
20 | 19 | ||
21 | #define CACHE_COLOUR(vaddr) ((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT) | 20 | #define CACHE_COLOUR(vaddr) ((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT) |
22 | 21 | ||
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index 0927f47607e2..d74a284abdc2 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #define __ASM_CACHEFLUSH_H | 20 | #define __ASM_CACHEFLUSH_H |
21 | 21 | ||
22 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
23 | #include <asm/set_memory.h> | ||
24 | 23 | ||
25 | /* | 24 | /* |
26 | * This flag is used to indicate that the page pointed to by a pte is clean | 25 | * This flag is used to indicate that the page pointed to by a pte is clean |
diff --git a/arch/s390/include/asm/Kbuild b/arch/s390/include/asm/Kbuild index 7e3481eb2174..45092b12f54f 100644 --- a/arch/s390/include/asm/Kbuild +++ b/arch/s390/include/asm/Kbuild | |||
@@ -1,4 +1,5 @@ | |||
1 | generic-y += asm-offsets.h | 1 | generic-y += asm-offsets.h |
2 | generic-y += cacheflush.h | ||
2 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
3 | generic-y += dma-contiguous.h | 4 | generic-y += dma-contiguous.h |
4 | generic-y += div64.h | 5 | generic-y += div64.h |
diff --git a/arch/s390/include/asm/cacheflush.h b/arch/s390/include/asm/cacheflush.h deleted file mode 100644 index afe296515f76..000000000000 --- a/arch/s390/include/asm/cacheflush.h +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #ifndef _S390_CACHEFLUSH_H | ||
2 | #define _S390_CACHEFLUSH_H | ||
3 | |||
4 | /* Caches aren't brain-dead on the s390. */ | ||
5 | #include <asm-generic/cacheflush.h> | ||
6 | #include <asm/set_memory.h> | ||
7 | |||
8 | #endif /* _S390_CACHEFLUSH_H */ | ||
diff --git a/arch/x86/include/asm/cacheflush.h b/arch/x86/include/asm/cacheflush.h index 3d7db6f35aeb..8b4140f6724f 100644 --- a/arch/x86/include/asm/cacheflush.h +++ b/arch/x86/include/asm/cacheflush.h | |||
@@ -4,7 +4,6 @@ | |||
4 | /* Caches aren't brain-dead on the intel. */ | 4 | /* Caches aren't brain-dead on the intel. */ |
5 | #include <asm-generic/cacheflush.h> | 5 | #include <asm-generic/cacheflush.h> |
6 | #include <asm/special_insns.h> | 6 | #include <asm/special_insns.h> |
7 | #include <asm/set_memory.h> | ||
8 | 7 | ||
9 | void clflush_cache_range(void *addr, unsigned int size); | 8 | void clflush_cache_range(void *addr, unsigned int size); |
10 | 9 | ||
diff --git a/arch/x86/kernel/kprobes/core.c b/arch/x86/kernel/kprobes/core.c index 19e1f2a6d7b0..5b2bbfbb3712 100644 --- a/arch/x86/kernel/kprobes/core.c +++ b/arch/x86/kernel/kprobes/core.c | |||
@@ -61,6 +61,7 @@ | |||
61 | #include <asm/alternative.h> | 61 | #include <asm/alternative.h> |
62 | #include <asm/insn.h> | 62 | #include <asm/insn.h> |
63 | #include <asm/debugreg.h> | 63 | #include <asm/debugreg.h> |
64 | #include <asm/set_memory.h> | ||
64 | 65 | ||
65 | #include "common.h" | 66 | #include "common.h" |
66 | 67 | ||
diff --git a/arch/x86/kernel/kprobes/opt.c b/arch/x86/kernel/kprobes/opt.c index 9aadff3d0902..901c640d152f 100644 --- a/arch/x86/kernel/kprobes/opt.c +++ b/arch/x86/kernel/kprobes/opt.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <asm/alternative.h> | 37 | #include <asm/alternative.h> |
38 | #include <asm/insn.h> | 38 | #include <asm/insn.h> |
39 | #include <asm/debugreg.h> | 39 | #include <asm/debugreg.h> |
40 | #include <asm/set_memory.h> | ||
40 | 41 | ||
41 | #include "common.h" | 42 | #include "common.h" |
42 | 43 | ||