Skip to content

Commit 8cf9e12

Browse files
xairytehcaster
authored andcommitted
mm: slab: fix comment for ARCH_KMALLOC_MINALIGN
The comment next to the ARCH_KMALLOC_MINALIGN definition says that ARCH_KMALLOC_MINALIGN can be defined in arch headers. This is incorrect: it's actually ARCH_DMA_MINALIGN that can be defined there. Fix the comment. Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Link: https://lore.kernel.org/r/fe1ca7a25a054b61d1038686d07569416e287e7b.1651161548.git.andreyknvl@google.com
1 parent a204e6d commit 8cf9e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/slab.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void kmem_dump_obj(void *object);
197197
/*
198198
* Some archs want to perform DMA into kmalloc caches and need a guaranteed
199199
* alignment larger than the alignment of a 64-bit integer.
200-
* Setting ARCH_KMALLOC_MINALIGN in arch headers allows that.
200+
* Setting ARCH_DMA_MINALIGN in arch headers allows that.
201201
*/
202202
#if defined(ARCH_DMA_MINALIGN) && ARCH_DMA_MINALIGN > 8
203203
#define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN

0 commit comments

Comments
 (0)