Messages in this thread | | | Date | Wed, 19 May 2010 14:45:01 -0500 (CDT) | From | Christoph Lameter <> | Subject | Re: [PATCH 1/4] mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to <linux/slab_def.h> |
| |
On Wed, 19 May 2010, Pekka Enberg wrote:
> Christoph Lameter wrote: > > Maybe we can consolidate that into slab.h so that the alignment is the > > same for all allocators? > > But we don't want that for SLOB as discussed in the other thread. It really > wants to be sizeof(unsigned long), not sizeof(unsigned long long).
__alignof__(unsigned long long)
SLOB needs to respect that as well otherwise objects are not aligned as required by the compiler.
| |