diff options
Diffstat (limited to 'include/linux/slab_def.h')
| -rw-r--r-- | include/linux/slab_def.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 1acfa73ce2ac..791a502f6906 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h | |||
| @@ -17,7 +17,6 @@ | |||
| 17 | 17 | ||
| 18 | #include <trace/events/kmem.h> | 18 | #include <trace/events/kmem.h> |
| 19 | 19 | ||
| 20 | #ifndef ARCH_KMALLOC_MINALIGN | ||
| 21 | /* | 20 | /* |
| 22 | * Enforce a minimum alignment for the kmalloc caches. | 21 | * Enforce a minimum alignment for the kmalloc caches. |
| 23 | * Usually, the kmalloc caches are cache_line_size() aligned, except when | 22 | * Usually, the kmalloc caches are cache_line_size() aligned, except when |
| @@ -27,6 +26,9 @@ | |||
| 27 | * ARCH_KMALLOC_MINALIGN allows that. | 26 | * ARCH_KMALLOC_MINALIGN allows that. |
| 28 | * Note that increasing this value may disable some debug features. | 27 | * Note that increasing this value may disable some debug features. |
| 29 | */ | 28 | */ |
| 29 | #ifdef ARCH_DMA_MINALIGN | ||
| 30 | #define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN | ||
| 31 | #else | ||
| 30 | #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long) | 32 | #define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long) |
| 31 | #endif | 33 | #endif |
| 32 | 34 | ||
