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

x86/setup: Remove unused RESERVE_BRK_ARRAY()

Since a13f2ef168cb ("x86/xen: remove 32-bit Xen PV guest support"),
RESERVE_BRK_ARRAY() has no user anymore so drop it.

Update related comments too.

Signed-off-by: Cao jin <jojing64@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210311083919.27530-1-jojing64@gmail.com

authored by

Cao jin and committed by
Borislav Petkov
81519f77 b18adee4

+3 -8
-5
arch/x86/include/asm/setup.h
··· 130 130 : : "i" (sz)); \ 131 131 } 132 132 133 - /* Helper for reserving space for arrays of things */ 134 - #define RESERVE_BRK_ARRAY(type, name, entries) \ 135 - type *name; \ 136 - RESERVE_BRK(name, sizeof(type) * entries) 137 - 138 133 extern void probe_roms(void); 139 134 #ifdef __i386__ 140 135
+3 -3
arch/x86/kernel/setup.c
··· 65 65 66 66 /* 67 67 * Range of the BSS area. The size of the BSS area is determined 68 - * at link time, with RESERVE_BRK*() facility reserving additional 68 + * at link time, with RESERVE_BRK() facility reserving additional 69 69 * chunks. 70 70 */ 71 71 unsigned long _brk_start = (unsigned long)__brk_base; ··· 1038 1038 1039 1039 /* 1040 1040 * Need to conclude brk, before e820__memblock_setup() 1041 - * it could use memblock_find_in_range, could overlap with 1042 - * brk area. 1041 + * it could use memblock_find_in_range, could overlap with 1042 + * brk area. 1043 1043 */ 1044 1044 reserve_brk(); 1045 1045