diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-21 19:39:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-21 19:39:08 -0500 |
commit | 0264405b84505f60ae00625f261e75a32c7ddf56 (patch) | |
tree | 202eda6bf55fcc8b6235dfe4218cea9442c0ea3c | |
parent | 7e65df3899cef3193ec44a7870f9bdc1ee6af833 (diff) | |
parent | fb9de7ebc3a2eb7ddb83c92e288447a0c313bced (diff) |
Merge tag 'asm-generic' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
Pull asm-generic cleanup from Arnd Bergmann:
"These are a few cleanups for asm-generic:
- a set of patches from Lars-Peter Clausen to generalize asm/mmu.h
and use it in the architectures that don't need any special
handling.
- A patch from Will Deacon to remove the {read,write}s{b,w,l} as
discussed during the arm64 review
- A patch from James Hogan that helps with the meta architecture
series."
* tag 'asm-generic' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
xtensa: Use generic asm/mmu.h for nommu
h8300: Use generic asm/mmu.h
c6x: Use generic asm/mmu.h
asm-generic/mmu.h: Add support for FDPIC
asm-generic/mmu.h: Remove unused vmlist field from mm_context_t
asm-generic: io: remove {read,write} string functions
asm-generic/io.h: remove asm/cacheflush.h include
-rw-r--r-- | arch/c6x/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/c6x/include/asm/mmu.h | 22 | ||||
-rw-r--r-- | arch/h8300/include/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/h8300/include/asm/mmu.h | 10 | ||||
-rw-r--r-- | arch/openrisc/include/asm/io.h | 1 | ||||
-rw-r--r-- | arch/xtensa/include/asm/mmu.h | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/nommu.h | 3 | ||||
-rw-r--r-- | include/asm-generic/io.h | 31 | ||||
-rw-r--r-- | include/asm-generic/mmu.h | 6 |
9 files changed, 9 insertions, 68 deletions
diff --git a/arch/c6x/include/asm/Kbuild b/arch/c6x/include/asm/Kbuild index eae7b5963e86..4258b088aa93 100644 --- a/arch/c6x/include/asm/Kbuild +++ b/arch/c6x/include/asm/Kbuild | |||
@@ -25,6 +25,7 @@ generic-y += kdebug.h | |||
25 | generic-y += kmap_types.h | 25 | generic-y += kmap_types.h |
26 | generic-y += local.h | 26 | generic-y += local.h |
27 | generic-y += mman.h | 27 | generic-y += mman.h |
28 | generic-y += mmu.h | ||
28 | generic-y += mmu_context.h | 29 | generic-y += mmu_context.h |
29 | generic-y += msgbuf.h | 30 | generic-y += msgbuf.h |
30 | generic-y += param.h | 31 | generic-y += param.h |
diff --git a/arch/c6x/include/asm/mmu.h b/arch/c6x/include/asm/mmu.h deleted file mode 100644 index 4467e770a1ce..000000000000 --- a/arch/c6x/include/asm/mmu.h +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* | ||
2 | * Port on Texas Instruments TMS320C6x architecture | ||
3 | * | ||
4 | * Copyright (C) 2004, 2009, 2010 Texas Instruments Incorporated | ||
5 | * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | #ifndef _ASM_C6X_MMU_H | ||
12 | #define _ASM_C6X_MMU_H | ||
13 | |||
14 | typedef struct { | ||
15 | unsigned long end_brk; | ||
16 | #ifdef CONFIG_BINFMT_ELF_FDPIC | ||
17 | unsigned long exec_fdpic_loadmap; | ||
18 | unsigned long interp_fdpic_loadmap; | ||
19 | #endif | ||
20 | } mm_context_t; | ||
21 | |||
22 | #endif /* _ASM_C6X_MMU_H */ | ||
diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild index bebdc36ebb0a..995eb47e01bb 100644 --- a/arch/h8300/include/asm/Kbuild +++ b/arch/h8300/include/asm/Kbuild | |||
@@ -1,5 +1,6 @@ | |||
1 | 1 | ||
2 | generic-y += clkdev.h | 2 | generic-y += clkdev.h |
3 | generic-y += exec.h | 3 | generic-y += exec.h |
4 | generic-y += mmu.h | ||
4 | generic-y += module.h | 5 | generic-y += module.h |
5 | generic-y += trace_clock.h | 6 | generic-y += trace_clock.h |
diff --git a/arch/h8300/include/asm/mmu.h b/arch/h8300/include/asm/mmu.h deleted file mode 100644 index 31309969df70..000000000000 --- a/arch/h8300/include/asm/mmu.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #ifndef __MMU_H | ||
2 | #define __MMU_H | ||
3 | |||
4 | /* Copyright (C) 2002, David McCullough <davidm@snapgear.com> */ | ||
5 | |||
6 | typedef struct { | ||
7 | unsigned long end_brk; | ||
8 | } mm_context_t; | ||
9 | |||
10 | #endif | ||
diff --git a/arch/openrisc/include/asm/io.h b/arch/openrisc/include/asm/io.h index 07f5299d6c28..7c691399da3f 100644 --- a/arch/openrisc/include/asm/io.h +++ b/arch/openrisc/include/asm/io.h | |||
@@ -30,6 +30,7 @@ | |||
30 | #define PIO_MASK 0 | 30 | #define PIO_MASK 0 |
31 | 31 | ||
32 | #include <asm-generic/io.h> | 32 | #include <asm-generic/io.h> |
33 | #include <asm/pgtable.h> | ||
33 | 34 | ||
34 | extern void __iomem *__ioremap(phys_addr_t offset, unsigned long size, | 35 | extern void __iomem *__ioremap(phys_addr_t offset, unsigned long size, |
35 | pgprot_t prot); | 36 | pgprot_t prot); |
diff --git a/arch/xtensa/include/asm/mmu.h b/arch/xtensa/include/asm/mmu.h index 04890d6e2335..8554b2c8b17a 100644 --- a/arch/xtensa/include/asm/mmu.h +++ b/arch/xtensa/include/asm/mmu.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #define _XTENSA_MMU_H | 12 | #define _XTENSA_MMU_H |
13 | 13 | ||
14 | #ifndef CONFIG_MMU | 14 | #ifndef CONFIG_MMU |
15 | #include <asm/nommu.h> | 15 | #include <asm-generic/mmu.h> |
16 | #else | 16 | #else |
17 | 17 | ||
18 | /* Default "unsigned long" context */ | 18 | /* Default "unsigned long" context */ |
diff --git a/arch/xtensa/include/asm/nommu.h b/arch/xtensa/include/asm/nommu.h deleted file mode 100644 index dce2c438c5ba..000000000000 --- a/arch/xtensa/include/asm/nommu.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | typedef struct { | ||
2 | unsigned long end_brk; | ||
3 | } mm_context_t; | ||
diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h index d1e93284d72a..33bbbae4ddc6 100644 --- a/include/asm-generic/io.h +++ b/include/asm-generic/io.h | |||
@@ -12,7 +12,6 @@ | |||
12 | #define __ASM_GENERIC_IO_H | 12 | #define __ASM_GENERIC_IO_H |
13 | 13 | ||
14 | #include <asm/page.h> /* I/O is all done through memory accesses */ | 14 | #include <asm/page.h> /* I/O is all done through memory accesses */ |
15 | #include <asm/cacheflush.h> | ||
16 | #include <linux/types.h> | 15 | #include <linux/types.h> |
17 | 16 | ||
18 | #ifdef CONFIG_GENERIC_IOMAP | 17 | #ifdef CONFIG_GENERIC_IOMAP |
@@ -223,36 +222,6 @@ static inline void outsl(unsigned long addr, const void *buffer, int count) | |||
223 | } | 222 | } |
224 | #endif | 223 | #endif |
225 | 224 | ||
226 | static inline void readsl(const void __iomem *addr, void *buf, int len) | ||
227 | { | ||
228 | insl(addr - PCI_IOBASE, buf, len); | ||
229 | } | ||
230 | |||
231 | static inline void readsw(const void __iomem *addr, void *buf, int len) | ||
232 | { | ||
233 | insw(addr - PCI_IOBASE, buf, len); | ||
234 | } | ||
235 | |||
236 | static inline void readsb(const void __iomem *addr, void *buf, int len) | ||
237 | { | ||
238 | insb(addr - PCI_IOBASE, buf, len); | ||
239 | } | ||
240 | |||
241 | static inline void writesl(const void __iomem *addr, const void *buf, int len) | ||
242 | { | ||
243 | outsl(addr - PCI_IOBASE, buf, len); | ||
244 | } | ||
245 | |||
246 | static inline void writesw(const void __iomem *addr, const void *buf, int len) | ||
247 | { | ||
248 | outsw(addr - PCI_IOBASE, buf, len); | ||
249 | } | ||
250 | |||
251 | static inline void writesb(const void __iomem *addr, const void *buf, int len) | ||
252 | { | ||
253 | outsb(addr - PCI_IOBASE, buf, len); | ||
254 | } | ||
255 | |||
256 | #ifndef CONFIG_GENERIC_IOMAP | 225 | #ifndef CONFIG_GENERIC_IOMAP |
257 | #define ioread8(addr) readb(addr) | 226 | #define ioread8(addr) readb(addr) |
258 | #define ioread16(addr) readw(addr) | 227 | #define ioread16(addr) readw(addr) |
diff --git a/include/asm-generic/mmu.h b/include/asm-generic/mmu.h index 4f4aa56d6b52..0ed3f1cfb854 100644 --- a/include/asm-generic/mmu.h +++ b/include/asm-generic/mmu.h | |||
@@ -7,8 +7,12 @@ | |||
7 | */ | 7 | */ |
8 | #ifndef __ASSEMBLY__ | 8 | #ifndef __ASSEMBLY__ |
9 | typedef struct { | 9 | typedef struct { |
10 | struct vm_list_struct *vmlist; | ||
11 | unsigned long end_brk; | 10 | unsigned long end_brk; |
11 | |||
12 | #ifdef CONFIG_BINFMT_ELF_FDPIC | ||
13 | unsigned long exec_fdpic_loadmap; | ||
14 | unsigned long interp_fdpic_loadmap; | ||
15 | #endif | ||
12 | } mm_context_t; | 16 | } mm_context_t; |
13 | #endif | 17 | #endif |
14 | 18 | ||