[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240802010923.15577-2-richard.weiyang@gmail.com>
Date: Fri, 2 Aug 2024 01:09:20 +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 v3 2/5] memblock test: add the definition of __setup()
Commit 1e4c64b71c9b ("mm/memblock: Add "reserve_mem" to reserved named
memory at boot up") introduce usage of __setup(), which is not defined
in memblock test.
Define it in init.h to fix the build error.
Signed-off-by: Wei Yang <richard.weiyang@...il.com>
---
tools/testing/memblock/linux/init.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/memblock/linux/init.h b/tools/testing/memblock/linux/init.h
index 828e0ee0bc6c..036616a25427 100644
--- a/tools/testing/memblock/linux/init.h
+++ b/tools/testing/memblock/linux/init.h
@@ -28,6 +28,9 @@ struct obs_kernel_param {
__aligned(__alignof__(struct obs_kernel_param)) = \
{ __setup_str_##unique_id, fn, early }
+#define __setup(str, fn) \
+ __setup_param(str, fn, fn, 0)
+
#define early_param(str, fn) \
__setup_param(str, fn, fn, 1)
--
2.34.1
Powered by blists - more mailing lists