Skip to content

Commit 9f76c2a

Browse files
RichardWeiYangrppt
authored andcommitted
memblock test: add the definition of __setup()
Commit 1e4c64b ("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>
1 parent 39f64e4 commit 9f76c2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/include/linux/init.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ struct obs_kernel_param {
3434
__aligned(__alignof__(struct obs_kernel_param)) = \
3535
{ __setup_str_##unique_id, fn, early }
3636

37+
#define __setup(str, fn) \
38+
__setup_param(str, fn, fn, 0)
39+
3740
#define early_param(str, fn) \
3841
__setup_param(str, fn, fn, 1)
3942

0 commit comments

Comments
 (0)