Re: [PATCH] mm/slub.c: use 'unsigned long' instead of 'int' for variable 'slub_debug'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Jul 2013, Chen Gang wrote:

> 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

The bit definitions in slab.h as well as slub.c all assume that these are
32 bit entities. See f.e. the defition of the internal slub flags:

/* Internal SLUB flags */
#define __OBJECT_POISON         0x80000000UL /* Poison object */
#define __CMPXCHG_DOUBLE        0x40000000UL /* Use cmpxchg_double */


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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]