lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240725014157.17707-1-richard.weiyang@gmail.com>
Date: Thu, 25 Jul 2024 01:41:53 +0000
From: Wei Yang <richard.weiyang@...il.com>
To: rppt@...nel.org,
	richard.weiyang@...il.com
Cc: linux-kernel@...r.kernel.org,
	linux-mm@...ck.org
Subject: [PATCH 1/5] memblock test: fix implicit declaration of function 'virt_to_phys'

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@...il.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ