From: Wei Yang Date: Tue, 6 Aug 2024 01:03:16 +0000 (+0000) Subject: memblock test: add the definition of __setup() X-Git-Tag: v6.12-rc1~50^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f76c2ade323121f9006f6a529e0795317e16b5c;p=thirdparty%2Flinux.git 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 Link: https://lore.kernel.org/r/20240806010319.29194-2-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (Microsoft) --- diff --git a/tools/include/linux/init.h b/tools/include/linux/init.h index 7ed407976dda2..51b5cde28639c 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)