diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-09-29 08:02:13 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-02 03:47:52 -0400 |
commit | a5dd5c117cbf620378d693963ffc42239297fac4 (patch) | |
tree | 12dc4b1bc7da97acebb04afabd07b20cc6642a3b /mm | |
parent | 62e346a83026a28526fc9799337bcc6154819f25 (diff) |
slub: Fix signedness warnings
The bit-ops routines require its arg to be a pointer to unsigned long.
This leads sparse to complain about different signedness as follows:
mm/slub.c:2425:49: warning: incorrect type in argument 2 (different signedness)
mm/slub.c:2425:49: expected unsigned long volatile *addr
mm/slub.c:2425:49: got long *map
Acked-by: Christoph Lameter <cl@linux.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2433,9 +2433,8 @@ static void list_slab_objects(struct kmem_cache *s, struct page *page, | |||
2433 | #ifdef CONFIG_SLUB_DEBUG | 2433 | #ifdef CONFIG_SLUB_DEBUG |
2434 | void *addr = page_address(page); | 2434 | void *addr = page_address(page); |
2435 | void *p; | 2435 | void *p; |
2436 | long *map = kzalloc(BITS_TO_LONGS(page->objects) * sizeof(long), | 2436 | unsigned long *map = kzalloc(BITS_TO_LONGS(page->objects) * |
2437 | GFP_ATOMIC); | 2437 | sizeof(long), GFP_ATOMIC); |
2438 | |||
2439 | if (!map) | 2438 | if (!map) |
2440 | return; | 2439 | return; |
2441 | slab_err(s, page, "%s", text); | 2440 | slab_err(s, page, "%s", text); |
@@ -3660,7 +3659,7 @@ static int add_location(struct loc_track *t, struct kmem_cache *s, | |||
3660 | 3659 | ||
3661 | static void process_slab(struct loc_track *t, struct kmem_cache *s, | 3660 | static void process_slab(struct loc_track *t, struct kmem_cache *s, |
3662 | struct page *page, enum track_item alloc, | 3661 | struct page *page, enum track_item alloc, |
3663 | long *map) | 3662 | unsigned long *map) |
3664 | { | 3663 | { |
3665 | void *addr = page_address(page); | 3664 | void *addr = page_address(page); |
3666 | void *p; | 3665 | void *p; |