summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-08-06 01:03:16 +0000
committerMike Rapoport (Microsoft) <rppt@kernel.org>2024-08-06 08:21:25 +0300
commit9f76c2ade323121f9006f6a529e0795317e16b5c (patch)
treeb84d5a3ce4d1ede4662e03204bf3ef65e3993909 /tools/include
parent39f64e402f659890a99d415eaf63a01f3b80a9a8 (diff)
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@gmail.com> Link: https://lore.kernel.org/r/20240806010319.29194-2-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/init.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/linux/init.h b/tools/include/linux/init.h
index 7ed407976dda..51b5cde28639 100644
--- a/tools/include/linux/init.h
+++ b/tools/include/linux/init.h
@@ -34,6 +34,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)