aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/slab.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r--include/linux/slab.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h
index ad4dd1c8d30a..646a639a4aae 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -133,6 +133,16 @@ unsigned int kmem_cache_size(struct kmem_cache *);
133#define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_HIGH) 133#define KMALLOC_MAX_SIZE (1UL << KMALLOC_SHIFT_HIGH)
134#define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_HIGH - PAGE_SHIFT) 134#define KMALLOC_MAX_ORDER (KMALLOC_SHIFT_HIGH - PAGE_SHIFT)
135 135
136#ifdef ARCH_DMA_MINALIGN
137#define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN
138#else
139#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
140#endif
141
142#ifndef ARCH_SLAB_MINALIGN
143#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long)
144#endif
145
136/* 146/*
137 * Common kmalloc functions provided by all allocators 147 * Common kmalloc functions provided by all allocators
138 */ 148 */