On Thu, 29 May 2008, Mike Frysinger wrote:
quoted text > > You should not have to do this. This is the default alignment that also
> > SLOB needs to follow. We need to align structures correctly for access to
> > long long's.
>
> are you saying that slob is broken ? i see in mm/slob.c:
> #ifndef ARCH_KMALLOC_MINALIGN
> #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long)
> #endif
> -mike
It should be long long instead.
SLUB:
#ifndef ARCH_KMALLOC_MINALIGN
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
#endif
SLAB:
#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH] nommu: fix kobjsize() for SLOB and SLUB , Christoph Lameter , (Thu May 29, 5:29 pm)