diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-12-06 23:33:20 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:25 -0500 |
commit | e18b890bb0881bbab6f4f1a6cd20d9c60d66b003 (patch) | |
tree | 4828be07e1c24781c264b42c5a75bcd968223c3f /arch/sparc64 | |
parent | 441e143e95f5aa1e04026cb0aa71c801ba53982f (diff) |
[PATCH] slab: remove kmem_cache_t
Replace all uses of kmem_cache_t with struct kmem_cache.
The patch was generated using the following script:
#!/bin/sh
#
# Replace one string by another in all the kernel sources.
#
set -e
for file in `find * -name "*.c" -o -name "*.h"|xargs grep -l $1`; do
quilt add $file
sed -e "1,\$s/$1/$2/g" $file >/tmp/$$
mv /tmp/$$ $file
quilt refresh
done
The script was run like this
sh replace kmem_cache_t "struct kmem_cache"
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/mm/init.c | 4 | ||||
-rw-r--r-- | arch/sparc64/mm/tsb.c | 2 |
2 files changed, 3 insertions, 3 deletions
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", |