summaryrefslogtreecommitdiff
path: root/include/linux/slob_def.h
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2011-06-14 16:16:36 -0500
committerPekka Enberg <penberg@kernel.org>2011-06-16 19:40:20 +0300
commit3192b920bf7d0c528ab54e7d3689f44055316a37 (patch)
treef907471f606a17cef0c1af4bc2187cdd4ee26c64 /include/linux/slob_def.h
parentbd50cfa89153a67429935a15e577a5eb5f10dd1b (diff)
downloadlinux-next-3192b920bf7d0c528ab54e7d3689f44055316a37.tar.gz
slab, slub, slob: Unify alignment definition
Every slab has its on alignment definition in include/linux/sl?b_def.h. Extract those and define a common set in include/linux/slab.h. SLOB: As notes sometimes we need double word alignment on 32 bit. This gives all structures allocated by SLOB a unsigned long long alignment like the others do. SLAB: If ARCH_SLAB_MINALIGN is not set SLAB would set ARCH_SLAB_MINALIGN to zero meaning no alignment at all. Give it the default unsigned long long alignment. Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'include/linux/slob_def.h')
-rw-r--r--include/linux/slob_def.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/slob_def.h b/include/linux/slob_def.h
index 4382db09df4f..0ec00b39d006 100644
--- a/include/linux/slob_def.h
+++ b/include/linux/slob_def.h
@@ -1,16 +1,6 @@
#ifndef __LINUX_SLOB_DEF_H
#define __LINUX_SLOB_DEF_H
-#ifdef ARCH_DMA_MINALIGN
-#define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN
-#else
-#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long)
-#endif
-
-#ifndef ARCH_SLAB_MINALIGN
-#define ARCH_SLAB_MINALIGN __alignof__(unsigned long)
-#endif
-
void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep,