diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-27 14:26:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-27 14:26:48 -0400 |
commit | 84eda28060f7e7d5f91f81f928532af13b9e44b2 (patch) | |
tree | f0b7feeca9b6a21a43f279fb3b566eef1c16584d /arch/tile | |
parent | b387e41e523c1aa347cff055455d0dd129357df4 (diff) | |
parent | 2164d3344693d2d4799fe91836d61f55516cbdf0 (diff) |
Merge branch 'kmap_atomic' of git://github.com/congwang/linux
Pull final kmap_atomic cleanups from Cong Wang:
"This should be the final round of cleanup, as the definitions of enum
km_type finally get removed from the whole tree. The patches have
been in linux-next for a long time."
* 'kmap_atomic' of git://github.com/congwang/linux:
pipe: remove KM_USER0 from comments
vmalloc: remove KM_USER0 from comments
feature-removal-schedule.txt: remove kmap_atomic(page, km_type)
tile: remove km_type definitions
um: remove km_type definitions
asm-generic: remove km_type definitions
avr32: remove km_type definitions
frv: remove km_type definitions
powerpc: remove km_type definitions
arm: remove km_type definitions
highmem: remove the deprecated form of kmap_atomic
tile: remove usage of enum km_type
frv: remove the second parameter of kmap_atomic_primary()
jbd2: remove the second argument of kmap_atomic
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/kmap_types.h | 31 | ||||
-rw-r--r-- | arch/tile/mm/highmem.c | 2 |
2 files changed, 2 insertions, 31 deletions
diff --git a/arch/tile/include/asm/kmap_types.h b/arch/tile/include/asm/kmap_types.h index 3d0f20246260..92b28e3e9972 100644 --- a/arch/tile/include/asm/kmap_types.h +++ b/arch/tile/include/asm/kmap_types.h | |||
@@ -23,35 +23,6 @@ | |||
23 | * adds 4MB of required address-space. For now we leave KM_TYPE_NR | 23 | * adds 4MB of required address-space. For now we leave KM_TYPE_NR |
24 | * set to depth 8. | 24 | * set to depth 8. |
25 | */ | 25 | */ |
26 | enum km_type { | 26 | #define KM_TYPE_NR 8 |
27 | KM_TYPE_NR = 8 | ||
28 | }; | ||
29 | |||
30 | /* | ||
31 | * We provide dummy definitions of all the stray values that used to be | ||
32 | * required for kmap_atomic() and no longer are. | ||
33 | */ | ||
34 | enum { | ||
35 | KM_BOUNCE_READ, | ||
36 | KM_SKB_SUNRPC_DATA, | ||
37 | KM_SKB_DATA_SOFTIRQ, | ||
38 | KM_USER0, | ||
39 | KM_USER1, | ||
40 | KM_BIO_SRC_IRQ, | ||
41 | KM_BIO_DST_IRQ, | ||
42 | KM_PTE0, | ||
43 | KM_PTE1, | ||
44 | KM_IRQ0, | ||
45 | KM_IRQ1, | ||
46 | KM_SOFTIRQ0, | ||
47 | KM_SOFTIRQ1, | ||
48 | KM_SYNC_ICACHE, | ||
49 | KM_SYNC_DCACHE, | ||
50 | KM_UML_USERCOPY, | ||
51 | KM_IRQ_PTE, | ||
52 | KM_NMI, | ||
53 | KM_NMI_PTE, | ||
54 | KM_KDB | ||
55 | }; | ||
56 | 27 | ||
57 | #endif /* _ASM_TILE_KMAP_TYPES_H */ | 28 | #endif /* _ASM_TILE_KMAP_TYPES_H */ |
diff --git a/arch/tile/mm/highmem.c b/arch/tile/mm/highmem.c index ef8e5a62b6e3..347d123b14be 100644 --- a/arch/tile/mm/highmem.c +++ b/arch/tile/mm/highmem.c | |||
@@ -93,7 +93,7 @@ static DEFINE_PER_CPU(struct kmap_amps, amps); | |||
93 | * If we examine it earlier we are exposed to a race where it looks | 93 | * If we examine it earlier we are exposed to a race where it looks |
94 | * writable earlier, but becomes immutable before we write the PTE. | 94 | * writable earlier, but becomes immutable before we write the PTE. |
95 | */ | 95 | */ |
96 | static void kmap_atomic_register(struct page *page, enum km_type type, | 96 | static void kmap_atomic_register(struct page *page, int type, |
97 | unsigned long va, pte_t *ptep, pte_t pteval) | 97 | unsigned long va, pte_t *ptep, pte_t pteval) |
98 | { | 98 | { |
99 | unsigned long flags; | 99 | unsigned long flags; |