projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1759415
)
slub: Avoid warning for !CONFIG_SLUB_DEBUG
author
Christoph Lameter
<cl@linux.com>
Mon, 16 May 2011 20:26:06 +0000
(15:26 -0500)
committer
Pekka Enberg
<penberg@kernel.org>
Tue, 17 May 2011 19:16:08 +0000
(22:16 +0300)
Move the #ifdef so that get_map is only defined if CONFIG_SLUB_DEBUG is defined.
Reported-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index 461199f019d6e8a4101692dc5ed2586d9f0b275f..8657ab838b829a844a2fda412a084fdde8835502 100644
(file)
--- a/
mm/slub.c
+++ b/
mm/slub.c
@@
-326,6
+326,7
@@
static inline int oo_objects(struct kmem_cache_order_objects x)
return x.x & OO_MASK;
}
+#ifdef CONFIG_SLUB_DEBUG
/*
* Determine a map of object in use on a page.
*
@@
-341,7
+342,6
@@
static void get_map(struct kmem_cache *s, struct page *page, unsigned long *map)
set_bit(slab_index(p, s, addr), map);
}
-#ifdef CONFIG_SLUB_DEBUG
/*
* Debug settings:
*/