|
@@ -116,6 +116,14 @@ struct kmem_cache {
|
|
|
|
|
|
#define KMALLOC_SHIFT_LOW ilog2(KMALLOC_MIN_SIZE)
|
|
|
|
|
|
+#ifndef ARCH_KMALLOC_MINALIGN
|
|
|
+#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef ARCH_SLAB_MINALIGN
|
|
|
+#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long)
|
|
|
+#endif
|
|
|
+
|
|
|
/*
|
|
|
* Maximum kmalloc object size handled by SLUB. Larger object allocations
|
|
|
* are passed through to the page allocator. The page allocator "fastpath"
|