diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c2410/dma.c | 4 | ||||
-rw-r--r-- | arch/arm26/mm/memc.c | 6 | ||||
-rw-r--r-- | arch/frv/mm/pgalloc.c | 6 | ||||
-rw-r--r-- | arch/i386/mm/init.c | 4 | ||||
-rw-r--r-- | arch/i386/mm/pgtable.c | 6 | ||||
-rw-r--r-- | arch/ia64/ia32/ia32_support.c | 2 | ||||
-rw-r--r-- | arch/ia64/ia32/sys_ia32.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas_flash.c | 4 | ||||
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/init_64.c | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4/sq.c | 2 | ||||
-rw-r--r-- | arch/sh/mm/pmb.c | 6 | ||||
-rw-r--r-- | arch/sparc64/mm/init.c | 4 | ||||
-rw-r--r-- | arch/sparc64/mm/tsb.c | 2 |
15 files changed, 30 insertions, 30 deletions
diff --git a/arch/arm/mach-s3c2410/dma.c b/arch/arm/mach-s3c2410/dma.c index 3d211dc2f2f9..01abb0ace234 100644 --- a/arch/arm/mach-s3c2410/dma.c +++ b/arch/arm/mach-s3c2410/dma.c | |||
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | /* io map for dma */ | 41 | /* io map for dma */ |
42 | static void __iomem *dma_base; | 42 | static void __iomem *dma_base; |
43 | static kmem_cache_t *dma_kmem; | 43 | static struct kmem_cache *dma_kmem; |
44 | 44 | ||
45 | struct s3c24xx_dma_selection dma_sel; | 45 | struct s3c24xx_dma_selection dma_sel; |
46 | 46 | ||
@@ -1271,7 +1271,7 @@ struct sysdev_class dma_sysclass = { | |||
1271 | 1271 | ||
1272 | /* kmem cache implementation */ | 1272 | /* kmem cache implementation */ |
1273 | 1273 | ||
1274 | static void s3c2410_dma_cache_ctor(void *p, kmem_cache_t *c, unsigned long f) | 1274 | static void s3c2410_dma_cache_ctor(void *p, struct kmem_cache *c, unsigned long f) |
1275 | { | 1275 | { |
1276 | memset(p, 0, sizeof(struct s3c2410_dma_buf)); | 1276 | memset(p, 0, sizeof(struct s3c2410_dma_buf)); |
1277 | } | 1277 | } |
diff --git a/arch/arm26/mm/memc.c b/arch/arm26/mm/memc.c index 34def6397c3c..f2901581d4da 100644 --- a/arch/arm26/mm/memc.c +++ b/arch/arm26/mm/memc.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #define MEMC_TABLE_SIZE (256*sizeof(unsigned long)) | 25 | #define MEMC_TABLE_SIZE (256*sizeof(unsigned long)) |
26 | 26 | ||
27 | kmem_cache_t *pte_cache, *pgd_cache; | 27 | struct kmem_cache *pte_cache, *pgd_cache; |
28 | int page_nr; | 28 | int page_nr; |
29 | 29 | ||
30 | /* | 30 | /* |
@@ -162,12 +162,12 @@ void __init create_memmap_holes(struct meminfo *mi) | |||
162 | { | 162 | { |
163 | } | 163 | } |
164 | 164 | ||
165 | static void pte_cache_ctor(void *pte, kmem_cache_t *cache, unsigned long flags) | 165 | static void pte_cache_ctor(void *pte, struct kmem_cache *cache, unsigned long flags) |
166 | { | 166 | { |
167 | memzero(pte, sizeof(pte_t) * PTRS_PER_PTE); | 167 | memzero(pte, sizeof(pte_t) * PTRS_PER_PTE); |
168 | } | 168 | } |
169 | 169 | ||
170 | static void pgd_cache_ctor(void *pgd, kmem_cache_t *cache, unsigned long flags) | 170 | static void pgd_cache_ctor(void *pgd, struct kmem_cache *cache, unsigned long flags) |
171 | { | 171 | { |
172 | memzero(pgd + MEMC_TABLE_SIZE, USER_PTRS_PER_PGD * sizeof(pgd_t)); | 172 | memzero(pgd + MEMC_TABLE_SIZE, USER_PTRS_PER_PGD * sizeof(pgd_t)); |
173 | } | 173 | } |
diff --git a/arch/frv/mm/pgalloc.c b/arch/frv/mm/pgalloc.c index f76dd03ddd99..19b13be114a2 100644 --- a/arch/frv/mm/pgalloc.c +++ b/arch/frv/mm/pgalloc.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/cacheflush.h> | 18 | #include <asm/cacheflush.h> |
19 | 19 | ||
20 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((aligned(PAGE_SIZE))); | 20 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __attribute__((aligned(PAGE_SIZE))); |
21 | kmem_cache_t *pgd_cache; | 21 | struct kmem_cache *pgd_cache; |
22 | 22 | ||
23 | pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) | 23 | pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) |
24 | { | 24 | { |
@@ -100,7 +100,7 @@ static inline void pgd_list_del(pgd_t *pgd) | |||
100 | set_page_private(next, (unsigned long) pprev); | 100 | set_page_private(next, (unsigned long) pprev); |
101 | } | 101 | } |
102 | 102 | ||
103 | void pgd_ctor(void *pgd, kmem_cache_t *cache, unsigned long unused) | 103 | void pgd_ctor(void *pgd, struct kmem_cache *cache, unsigned long unused) |
104 | { | 104 | { |
105 | unsigned long flags; | 105 | unsigned long flags; |
106 | 106 | ||
@@ -120,7 +120,7 @@ void pgd_ctor(void *pgd, kmem_cache_t *cache, unsigned long unused) | |||
120 | } | 120 | } |
121 | 121 | ||
122 | /* never called when PTRS_PER_PMD > 1 */ | 122 | /* never called when PTRS_PER_PMD > 1 */ |
123 | void pgd_dtor(void *pgd, kmem_cache_t *cache, unsigned long unused) | 123 | void pgd_dtor(void *pgd, struct kmem_cache *cache, unsigned long unused) |
124 | { | 124 | { |
125 | unsigned long flags; /* can be called from interrupt context */ | 125 | unsigned long flags; /* can be called from interrupt context */ |
126 | 126 | ||
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c index 167416155ee4..a6a8e397dd88 100644 --- a/arch/i386/mm/init.c +++ b/arch/i386/mm/init.c | |||
@@ -699,8 +699,8 @@ int remove_memory(u64 start, u64 size) | |||
699 | #endif | 699 | #endif |
700 | #endif | 700 | #endif |
701 | 701 | ||
702 | kmem_cache_t *pgd_cache; | 702 | struct kmem_cache *pgd_cache; |
703 | kmem_cache_t *pmd_cache; | 703 | struct kmem_cache *pmd_cache; |
704 | 704 | ||
705 | void __init pgtable_cache_init(void) | 705 | void __init pgtable_cache_init(void) |
706 | { | 706 | { |
diff --git a/arch/i386/mm/pgtable.c b/arch/i386/mm/pgtable.c index 10126e3f8174..33be236fc6af 100644 --- a/arch/i386/mm/pgtable.c +++ b/arch/i386/mm/pgtable.c | |||
@@ -193,7 +193,7 @@ struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | |||
193 | return pte; | 193 | return pte; |
194 | } | 194 | } |
195 | 195 | ||
196 | void pmd_ctor(void *pmd, kmem_cache_t *cache, unsigned long flags) | 196 | void pmd_ctor(void *pmd, struct kmem_cache *cache, unsigned long flags) |
197 | { | 197 | { |
198 | memset(pmd, 0, PTRS_PER_PMD*sizeof(pmd_t)); | 198 | memset(pmd, 0, PTRS_PER_PMD*sizeof(pmd_t)); |
199 | } | 199 | } |
@@ -233,7 +233,7 @@ static inline void pgd_list_del(pgd_t *pgd) | |||
233 | set_page_private(next, (unsigned long)pprev); | 233 | set_page_private(next, (unsigned long)pprev); |
234 | } | 234 | } |
235 | 235 | ||
236 | void pgd_ctor(void *pgd, kmem_cache_t *cache, unsigned long unused) | 236 | void pgd_ctor(void *pgd, struct kmem_cache *cache, unsigned long unused) |
237 | { | 237 | { |
238 | unsigned long flags; | 238 | unsigned long flags; |
239 | 239 | ||
@@ -253,7 +253,7 @@ void pgd_ctor(void *pgd, kmem_cache_t *cache, unsigned long unused) | |||
253 | } | 253 | } |
254 | 254 | ||
255 | /* never called when PTRS_PER_PMD > 1 */ | 255 | /* never called when PTRS_PER_PMD > 1 */ |
256 | void pgd_dtor(void *pgd, kmem_cache_t *cache, unsigned long unused) | 256 | void pgd_dtor(void *pgd, struct kmem_cache *cache, unsigned long unused) |
257 | { | 257 | { |
258 | unsigned long flags; /* can be called from interrupt context */ | 258 | unsigned long flags; /* can be called from interrupt context */ |
259 | 259 | ||
diff --git a/arch/ia64/ia32/ia32_support.c b/arch/ia64/ia32/ia32_support.c index c187743965a0..6af400a12ca1 100644 --- a/arch/ia64/ia32/ia32_support.c +++ b/arch/ia64/ia32/ia32_support.c | |||
@@ -249,7 +249,7 @@ ia32_init (void) | |||
249 | 249 | ||
250 | #if PAGE_SHIFT > IA32_PAGE_SHIFT | 250 | #if PAGE_SHIFT > IA32_PAGE_SHIFT |
251 | { | 251 | { |
252 | extern kmem_cache_t *partial_page_cachep; | 252 | extern struct kmem_cache *partial_page_cachep; |
253 | 253 | ||
254 | partial_page_cachep = kmem_cache_create("partial_page_cache", | 254 | partial_page_cachep = kmem_cache_create("partial_page_cache", |
255 | sizeof(struct partial_page), 0, 0, | 255 | sizeof(struct partial_page), 0, 0, |
diff --git a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c index 9d6a3f210148..a4a6e1463af8 100644 --- a/arch/ia64/ia32/sys_ia32.c +++ b/arch/ia64/ia32/sys_ia32.c | |||
@@ -254,7 +254,7 @@ mmap_subpage (struct file *file, unsigned long start, unsigned long end, int pro | |||
254 | } | 254 | } |
255 | 255 | ||
256 | /* SLAB cache for partial_page structures */ | 256 | /* SLAB cache for partial_page structures */ |
257 | kmem_cache_t *partial_page_cachep; | 257 | struct kmem_cache *partial_page_cachep; |
258 | 258 | ||
259 | /* | 259 | /* |
260 | * init partial_page_list. | 260 | * init partial_page_list. |
diff --git a/arch/powerpc/kernel/rtas_flash.c b/arch/powerpc/kernel/rtas_flash.c index b9561d300516..7d0f13fecc0e 100644 --- a/arch/powerpc/kernel/rtas_flash.c +++ b/arch/powerpc/kernel/rtas_flash.c | |||
@@ -101,7 +101,7 @@ struct flash_block_list_header { /* just the header of flash_block_list */ | |||
101 | static struct flash_block_list_header rtas_firmware_flash_list = {0, NULL}; | 101 | static struct flash_block_list_header rtas_firmware_flash_list = {0, NULL}; |
102 | 102 | ||
103 | /* Use slab cache to guarantee 4k alignment */ | 103 | /* Use slab cache to guarantee 4k alignment */ |
104 | static kmem_cache_t *flash_block_cache = NULL; | 104 | static struct kmem_cache *flash_block_cache = NULL; |
105 | 105 | ||
106 | #define FLASH_BLOCK_LIST_VERSION (1UL) | 106 | #define FLASH_BLOCK_LIST_VERSION (1UL) |
107 | 107 | ||
@@ -286,7 +286,7 @@ static ssize_t rtas_flash_read(struct file *file, char __user *buf, | |||
286 | } | 286 | } |
287 | 287 | ||
288 | /* constructor for flash_block_cache */ | 288 | /* constructor for flash_block_cache */ |
289 | void rtas_block_ctor(void *ptr, kmem_cache_t *cache, unsigned long flags) | 289 | void rtas_block_ctor(void *ptr, struct kmem_cache *cache, unsigned long flags) |
290 | { | 290 | { |
291 | memset(ptr, 0, RTAS_BLK_SIZE); | 291 | memset(ptr, 0, RTAS_BLK_SIZE); |
292 | } | 292 | } |
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 424a8f57e155..89c836d54809 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -1047,7 +1047,7 @@ repeat: | |||
1047 | return err; | 1047 | return err; |
1048 | } | 1048 | } |
1049 | 1049 | ||
1050 | static void zero_ctor(void *addr, kmem_cache_t *cache, unsigned long flags) | 1050 | static void zero_ctor(void *addr, struct kmem_cache *cache, unsigned long flags) |
1051 | { | 1051 | { |
1052 | memset(addr, 0, kmem_cache_size(cache)); | 1052 | memset(addr, 0, kmem_cache_size(cache)); |
1053 | } | 1053 | } |
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 9a178549cbcf..d12a87ec5ae9 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -141,7 +141,7 @@ static int __init setup_kcore(void) | |||
141 | } | 141 | } |
142 | module_init(setup_kcore); | 142 | module_init(setup_kcore); |
143 | 143 | ||
144 | static void zero_ctor(void *addr, kmem_cache_t *cache, unsigned long flags) | 144 | static void zero_ctor(void *addr, struct kmem_cache *cache, unsigned long flags) |
145 | { | 145 | { |
146 | memset(addr, 0, kmem_cache_size(cache)); | 146 | memset(addr, 0, kmem_cache_size(cache)); |
147 | } | 147 | } |
@@ -166,9 +166,9 @@ static const char *pgtable_cache_name[ARRAY_SIZE(pgtable_cache_size)] = { | |||
166 | /* Hugepages need one extra cache, initialized in hugetlbpage.c. We | 166 | /* Hugepages need one extra cache, initialized in hugetlbpage.c. We |
167 | * can't put into the tables above, because HPAGE_SHIFT is not compile | 167 | * can't put into the tables above, because HPAGE_SHIFT is not compile |
168 | * time constant. */ | 168 | * time constant. */ |
169 | kmem_cache_t *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)+1]; | 169 | struct kmem_cache *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)+1]; |
170 | #else | 170 | #else |
171 | kmem_cache_t *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)]; | 171 | struct kmem_cache *pgtable_cache[ARRAY_SIZE(pgtable_cache_size)]; |
172 | #endif | 172 | #endif |
173 | 173 | ||
174 | void pgtable_cache_init(void) | 174 | void pgtable_cache_init(void) |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 7edfcc9d2853..e3af9112c026 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -40,7 +40,7 @@ | |||
40 | 40 | ||
41 | #include "spufs.h" | 41 | #include "spufs.h" |
42 | 42 | ||
43 | static kmem_cache_t *spufs_inode_cache; | 43 | static struct kmem_cache *spufs_inode_cache; |
44 | char *isolated_loader; | 44 | char *isolated_loader; |
45 | 45 | ||
46 | static struct inode * | 46 | static struct inode * |
@@ -65,7 +65,7 @@ spufs_destroy_inode(struct inode *inode) | |||
65 | } | 65 | } |
66 | 66 | ||
67 | static void | 67 | static void |
68 | spufs_init_once(void *p, kmem_cache_t * cachep, unsigned long flags) | 68 | spufs_init_once(void *p, struct kmem_cache * cachep, unsigned long flags) |
69 | { | 69 | { |
70 | struct spufs_inode_info *ei = p; | 70 | struct spufs_inode_info *ei = p; |
71 | 71 | ||
diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c index 55f43506995a..0c9ea38d2caa 100644 --- a/arch/sh/kernel/cpu/sh4/sq.c +++ b/arch/sh/kernel/cpu/sh4/sq.c | |||
@@ -38,7 +38,7 @@ struct sq_mapping { | |||
38 | 38 | ||
39 | static struct sq_mapping *sq_mapping_list; | 39 | static struct sq_mapping *sq_mapping_list; |
40 | static DEFINE_SPINLOCK(sq_mapping_lock); | 40 | static DEFINE_SPINLOCK(sq_mapping_lock); |
41 | static kmem_cache_t *sq_cache; | 41 | static struct kmem_cache *sq_cache; |
42 | static unsigned long *sq_bitmap; | 42 | static unsigned long *sq_bitmap; |
43 | 43 | ||
44 | #define store_queue_barrier() \ | 44 | #define store_queue_barrier() \ |
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 92e745341e4d..b60ad83a7635 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #define NR_PMB_ENTRIES 16 | 31 | #define NR_PMB_ENTRIES 16 |
32 | 32 | ||
33 | static kmem_cache_t *pmb_cache; | 33 | static struct kmem_cache *pmb_cache; |
34 | static unsigned long pmb_map; | 34 | static unsigned long pmb_map; |
35 | 35 | ||
36 | static struct pmb_entry pmb_init_map[] = { | 36 | static struct pmb_entry pmb_init_map[] = { |
@@ -283,7 +283,7 @@ void pmb_unmap(unsigned long addr) | |||
283 | } while (pmbe); | 283 | } while (pmbe); |
284 | } | 284 | } |
285 | 285 | ||
286 | static void pmb_cache_ctor(void *pmb, kmem_cache_t *cachep, unsigned long flags) | 286 | static void pmb_cache_ctor(void *pmb, struct kmem_cache *cachep, unsigned long flags) |
287 | { | 287 | { |
288 | struct pmb_entry *pmbe = pmb; | 288 | struct pmb_entry *pmbe = pmb; |
289 | 289 | ||
@@ -297,7 +297,7 @@ static void pmb_cache_ctor(void *pmb, kmem_cache_t *cachep, unsigned long flags) | |||
297 | spin_unlock_irq(&pmb_list_lock); | 297 | spin_unlock_irq(&pmb_list_lock); |
298 | } | 298 | } |
299 | 299 | ||
300 | static void pmb_cache_dtor(void *pmb, kmem_cache_t *cachep, unsigned long flags) | 300 | static void pmb_cache_dtor(void *pmb, struct kmem_cache *cachep, unsigned long flags) |
301 | { | 301 | { |
302 | spin_lock_irq(&pmb_list_lock); | 302 | spin_lock_irq(&pmb_list_lock); |
303 | pmb_list_del(pmb); | 303 | pmb_list_del(pmb); |
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 09cb7fccc03a..a8e8802eed4d 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -176,9 +176,9 @@ unsigned long sparc64_kern_sec_context __read_mostly; | |||
176 | 176 | ||
177 | int bigkernel = 0; | 177 | int bigkernel = 0; |
178 | 178 | ||
179 | kmem_cache_t *pgtable_cache __read_mostly; | 179 | struct kmem_cache *pgtable_cache __read_mostly; |
180 | 180 | ||
181 | static void zero_ctor(void *addr, kmem_cache_t *cache, unsigned long flags) | 181 | static void zero_ctor(void *addr, struct kmem_cache *cache, unsigned long flags) |
182 | { | 182 | { |
183 | clear_page(addr); | 183 | clear_page(addr); |
184 | } | 184 | } |
diff --git a/arch/sparc64/mm/tsb.c b/arch/sparc64/mm/tsb.c index beaa02810f0e..236d02f41a01 100644 --- a/arch/sparc64/mm/tsb.c +++ b/arch/sparc64/mm/tsb.c | |||
@@ -239,7 +239,7 @@ static void setup_tsb_params(struct mm_struct *mm, unsigned long tsb_idx, unsign | |||
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||
242 | static kmem_cache_t *tsb_caches[8] __read_mostly; | 242 | static struct kmem_cache *tsb_caches[8] __read_mostly; |
243 | 243 | ||
244 | static const char *tsb_cache_names[8] = { | 244 | static const char *tsb_cache_names[8] = { |
245 | "tsb_8KB", | 245 | "tsb_8KB", |