Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yang and committed by
Mike Rapoport (Microsoft)
9f76c2ad 39f64e40

+3
+3
tools/include/linux/init.h
··· 34 34 __aligned(__alignof__(struct obs_kernel_param)) = \ 35 35 { __setup_str_##unique_id, fn, early } 36 36 37 + #define __setup(str, fn) \ 38 + __setup_param(str, fn, fn, 0) 39 + 37 40 #define early_param(str, fn) \ 38 41 __setup_param(str, fn, fn, 1) 39 42