[kernel/2.6.38] fix gcc-4.6 set but unused warnings
[openwrt.git] / target / linux / generic / patches-3.0 / 900-slab_maxsize.patch
1 --- a/include/linux/slab.h
2 +++ b/include/linux/slab.h
3 @@ -127,8 +127,8 @@ unsigned int kmem_cache_size(struct kmem
4 * to do various tricks to work around compiler limitations in order to
5 * ensure proper constant folding.
6 */
7 -#define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT - 1) <= 25 ? \
8 - (MAX_ORDER + PAGE_SHIFT - 1) : 25)
9 +#define KMALLOC_SHIFT_HIGH ((MAX_ORDER + PAGE_SHIFT - 1) <= 17 ? \
10 + (MAX_ORDER + PAGE_SHIFT - 1) : 17)
11
12 #define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_HIGH)
13 #define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_HIGH - PAGE_SHIFT)
This page took 0.046328 seconds and 5 git commands to generate.