Commit bac49ce42a33f53beb7cf04e9a0600879d6265ca
Committed by
Pekka Enberg
1 parent
1f0ce8b3dd
Exists in
master
and in
39 other branches
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>
Showing 2 changed files with 8 additions and 8 deletions Side-by-side Diff
include/linux/slob_def.h
1 | 1 | #ifndef __LINUX_SLOB_DEF_H |
2 | 2 | #define __LINUX_SLOB_DEF_H |
3 | 3 | |
4 | +#ifndef ARCH_KMALLOC_MINALIGN | |
5 | +#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long) | |
6 | +#endif | |
7 | + | |
8 | +#ifndef ARCH_SLAB_MINALIGN | |
9 | +#define ARCH_SLAB_MINALIGN __alignof__(unsigned long) | |
10 | +#endif | |
11 | + | |
4 | 12 | void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node); |
5 | 13 | |
6 | 14 | static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep, |
mm/slob.c
... | ... | @@ -467,14 +467,6 @@ |
467 | 467 | * End of slob allocator proper. Begin kmem_cache_alloc and kmalloc frontend. |
468 | 468 | */ |
469 | 469 | |
470 | -#ifndef ARCH_KMALLOC_MINALIGN | |
471 | -#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long) | |
472 | -#endif | |
473 | - | |
474 | -#ifndef ARCH_SLAB_MINALIGN | |
475 | -#define ARCH_SLAB_MINALIGN __alignof__(unsigned long) | |
476 | -#endif | |
477 | - | |
478 | 470 | void *__kmalloc_node(size_t size, gfp_t gfp, int node) |
479 | 471 | { |
480 | 472 | unsigned int *m; |