From: David S. Miller Date: Tue, 18 May 2010 22:23:58 +0000 (-0700) Subject: sparc: Define ARCH_SLAB_MINALIGN X-Git-Tag: v2.6.35-rc1~498^2 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;ds=sidebyside;h=273fca0ecad9305247043815e185d1bfd04047d4;hp=be94bbb5db4de0f3a2a5405511ea3ebea261f2c8;p=safe%2Fjmp%2Flinux-2.6 sparc: Define ARCH_SLAB_MINALIGN Because SLOB fancies being different, the default minimum alignment is only "unsigned long" instead of SLAB/SLUB where the default is "unsigned long long" The inconsistency makes no sense and is asking for trouble, but define ARCH_SLAB_MINALIGN to get it right in all cases even after they fix the inconsistency. Signed-off-by: David S. Miller --- diff --git a/arch/sparc/include/asm/cache.h b/arch/sparc/include/asm/cache.h index 41f85ae..78b0700 100644 --- a/arch/sparc/include/asm/cache.h +++ b/arch/sparc/include/asm/cache.h @@ -7,6 +7,8 @@ #ifndef _SPARC_CACHE_H #define _SPARC_CACHE_H +#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) + #define L1_CACHE_SHIFT 5 #define L1_CACHE_BYTES 32 #define L1_CACHE_ALIGN(x) ((((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)))