linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] memblock test: fix implicit declaration of function 'virt_to_phys'
@ 2024-07-25  1:41 Wei Yang
  2024-07-25  1:41 ` [PATCH 2/5] memblock test: add the definition of __setup() Wei Yang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Wei Yang @ 2024-07-25  1:41 UTC (permalink / raw)
  To: rppt, richard.weiyang; +Cc: linux-kernel, linux-mm

Commit 94ff46de4a73 ("memblock: Move late alloc warning down to phys
alloc") introduce the usage of virt_to_phys(), which is not defined in
memblock tests.

Define it in kernel.h to fix the build error.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
---
 tools/testing/memblock/linux/kernel.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/memblock/linux/kernel.h b/tools/testing/memblock/linux/kernel.h
index d2f148bd8902..ca56f36ef296 100644
--- a/tools/testing/memblock/linux/kernel.h
+++ b/tools/testing/memblock/linux/kernel.h
@@ -9,4 +9,6 @@
 #include <linux/linkage.h>
 #include <linux/kconfig.h>
 
+#define virt_to_phys(p) ((unsigned long)p)
+
 #endif
-- 
2.34.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-07-28  5:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-25  1:41 [PATCH 1/5] memblock test: fix implicit declaration of function 'virt_to_phys' Wei Yang
2024-07-25  1:41 ` [PATCH 2/5] memblock test: add the definition of __setup() Wei Yang
2024-07-25  1:41 ` [PATCH 3/5] memblock test: fix implicit declaration of function 'memparse' Wei Yang
2024-07-25  1:41 ` [PATCH 4/5] memblock test: fix implicit declaration of function 'isspace' Wei Yang
2024-07-28  5:58   ` Mike Rapoport
2024-07-25  1:41 ` [PATCH 5/5] memblock test: fix implicit declaration of function 'strscpy' Wei Yang
2024-07-28  5:56 ` [PATCH 1/5] memblock test: fix implicit declaration of function 'virt_to_phys' Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox