projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a204e6d
)
mm: slab: fix comment for ARCH_KMALLOC_MINALIGN
author
Andrey Konovalov
<andreyknvl@google.com>
Thu, 28 Apr 2022 15:59:39 +0000
(17:59 +0200)
committer
Vlastimil Babka
<vbabka@suse.cz>
Mon, 2 May 2022 08:47:07 +0000
(10:47 +0200)
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
include/linux/slab.h
patch
|
blob
|
history
diff --git
a/include/linux/slab.h
b/include/linux/slab.h
index 11ceddcae9f4d67ed3617b5708cbe52ab352aea1..8c090599fc210db78085c149f5e912b103d7fe2e 100644
(file)
--- a/
include/linux/slab.h
+++ b/
include/linux/slab.h
@@
-197,7
+197,7
@@
void kmem_dump_obj(void *object);
/*
* Some archs want to perform DMA into kmalloc caches and need a guaranteed
* alignment larger than the alignment of a 64-bit integer.
- * Setting ARCH_
KMALLOC
_MINALIGN in arch headers allows that.
+ * Setting ARCH_
DMA
_MINALIGN in arch headers allows that.
*/
#if defined(ARCH_DMA_MINALIGN) && ARCH_DMA_MINALIGN > 8
#define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN