diff options
author | Victor Fusco <victor@cetuc.puc-rio.br> | 2005-09-10 03:26:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-10 13:06:26 -0400 |
commit | b2d550736f8b2186b8ef7e206d0bfbfec2238ae8 (patch) | |
tree | 45926a39be5c8c99d790521ec30d20f167df1c95 /mm/slab.c | |
parent | dfc866e5059561cc79a0cc1c68ff1492f4c78508 (diff) |
[PATCH] mm/slab: fix sparse warnings
Fix the sparse warning "implicit cast to nocast type"
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1720,7 +1720,7 @@ next: | |||
1720 | cachep->objsize = size; | 1720 | cachep->objsize = size; |
1721 | 1721 | ||
1722 | if (flags & CFLGS_OFF_SLAB) | 1722 | if (flags & CFLGS_OFF_SLAB) |
1723 | cachep->slabp_cache = kmem_find_general_cachep(slab_size,0); | 1723 | cachep->slabp_cache = kmem_find_general_cachep(slab_size, 0u); |
1724 | cachep->ctor = ctor; | 1724 | cachep->ctor = ctor; |
1725 | cachep->dtor = dtor; | 1725 | cachep->dtor = dtor; |
1726 | cachep->name = name; | 1726 | cachep->name = name; |
@@ -2839,7 +2839,7 @@ out: | |||
2839 | * New and improved: it will now make sure that the object gets | 2839 | * New and improved: it will now make sure that the object gets |
2840 | * put on the correct node list so that there is no false sharing. | 2840 | * put on the correct node list so that there is no false sharing. |
2841 | */ | 2841 | */ |
2842 | void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid) | 2842 | void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast flags, int nodeid) |
2843 | { | 2843 | { |
2844 | unsigned long save_flags; | 2844 | unsigned long save_flags; |
2845 | void *ptr; | 2845 | void *ptr; |