linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/slub.c: use 'unsigned long' instead of 'int' for variable 'slub_debug'
@ 2013-07-12  1:43 Chen Gang
  2013-07-12  3:27 ` [PATCH] mm/slub.c: beautify code of this file Chen Gang
  2013-07-12 13:53 ` [PATCH] mm/slub.c: use 'unsigned long' instead of 'int' for variable 'slub_debug' Christoph Lameter
  0 siblings, 2 replies; 22+ messages in thread
From: Chen Gang @ 2013-07-12  1:43 UTC (permalink / raw)
  To: cl, Pekka Enberg, mpm; +Cc: linux-mm

Since all values which can be assigned to 'slub_debug' are 'unsigned
long', recommend also to define 'slub_debug' as 'unsigned long' to
match the type precisely

e.g DEBUG_DEFAULT_FLAGS, SLAB_TRACE, SLAB_FAILSLAB ...


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 mm/slub.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index 2b02d66..4fd8c50 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -452,9 +452,9 @@ static void get_map(struct kmem_cache *s, struct page *page, unsigned long *map)
  * Debug settings:
  */
 #ifdef CONFIG_SLUB_DEBUG_ON
-static int slub_debug = DEBUG_DEFAULT_FLAGS;
+static unsigned long slub_debug = DEBUG_DEFAULT_FLAGS;
 #else
-static int slub_debug;
+static unsigned long slub_debug;
 #endif
 
 static char *slub_debug_slabs;
-- 
1.7.7.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2013-07-22  1:20 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-12  1:43 [PATCH] mm/slub.c: use 'unsigned long' instead of 'int' for variable 'slub_debug' Chen Gang
2013-07-12  3:27 ` [PATCH] mm/slub.c: beautify code of this file Chen Gang
2013-07-12 13:58   ` Christoph Lameter
2013-07-15  0:31     ` Chen Gang
2013-07-15  1:04     ` [PATCH 0/2] " Chen Gang
2013-07-15  1:05     ` [PATCH 1/2] mm/slub.c: beautify code for 80 column limitation and tab alignment Chen Gang
2013-07-15 14:19       ` Christoph Lameter
2013-07-16  0:55         ` Chen Gang
2013-07-15  1:06     ` [PATCH 2/2] mm/slub.c: beautify code for removing redundancy 'break' statement Chen Gang
2013-07-17  7:08       ` Pekka Enberg
2013-07-17 14:47       ` Christoph Lameter
2013-07-18  0:02         ` Chen Gang
2013-07-12 13:53 ` [PATCH] mm/slub.c: use 'unsigned long' instead of 'int' for variable 'slub_debug' Christoph Lameter
2013-07-15  0:19   ` Chen Gang
2013-07-15 14:17     ` Christoph Lameter
2013-07-16  0:53       ` Chen Gang
2013-07-17 14:46         ` Christoph Lameter
2013-07-18  0:13           ` Chen Gang
2013-07-18 13:42             ` Christoph Lameter
2013-07-19  0:50               ` Chen Gang F T
2013-07-19 14:00                 ` Christoph Lameter
2013-07-22  1:19                   ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox