VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Mike Rapoport <rppt@linux.ibm.com> 2021-10-21 10:09:29 +0300 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-10-21 18:30:49 -1000 commit: 658aafc8139c23a6a23f6f4d9a0c4c95476838d4 parent: 6c9a54551977ddf2d6e22c21354b4fb88946f96e
Commit Summary:
memblock: exclude MEMBLOCK_NOMAP regions from kmemleak
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/mm/memblock.c b/mm/memblock.c
index 103b052c016e..5096500b2647 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -932,6 +932,9 @@ int __init_memblock memblock_mark_mirror(phys_addr_t base, phys_addr_t size)
  * covered by the memory map. The struct page representing NOMAP memory
  * frames in the memory map will be PageReserved()
  *
+ * Note: if the memory being marked %MEMBLOCK_NOMAP was allocated from
+ * memblock, the caller must inform kmemleak to ignore that memory
+ *
  * Return: 0 on success, -errno on failure.
  */
 int __init_memblock memblock_mark_nomap(phys_addr_t base, phys_addr_t size)