diff options
author | David Woodhouse <dwmw2@infradead.org> | 2010-05-19 12:01:43 +0100 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-05-19 22:03:13 +0300 |
commit | bac49ce42a33f53beb7cf04e9a0600879d6265ca (patch) | |
tree | fa13848cc4dbb3cc178767dac55c567107044c29 /include/linux/slob_def.h | |
parent | 1f0ce8b3dd667dca720a47869f8110c298f0e5b8 (diff) | |
download | op-kernel-dev-bac49ce42a33f53beb7cf04e9a0600879d6265ca.zip op-kernel-dev-bac49ce42a33f53beb7cf04e9a0600879d6265ca.tar.gz |
mm: Move ARCH_SLAB_MINALIGN and ARCH_KMALLOC_MINALIGN to <linux/slob_def.h>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'include/linux/slob_def.h')
-rw-r--r-- | include/linux/slob_def.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/slob_def.h b/include/linux/slob_def.h index 0ec00b3..62667f7 100644 --- a/include/linux/slob_def.h +++ b/include/linux/slob_def.h @@ -1,6 +1,14 @@ #ifndef __LINUX_SLOB_DEF_H #define __LINUX_SLOB_DEF_H +#ifndef ARCH_KMALLOC_MINALIGN +#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, |