x86/brk: Drop RESERVE_BRK_ARRAY()
PATCH 1/1 x86/brk: Drop RESERVE_BRK_ARRAY()
Since a13f2ef168cb ("x86/xen: remove 32-bit Xen PV guest support"), RESERVE_BRK_ARRAY() has no user anymore, let's drop it.
Update related comments too.
Signed-off-by Cao jin <[email protected]>
--- arch/x86/include/asm/setup.h | 5 ----- arch/x86/kernel/setup.c | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-)
arch/x86/include/asm/setup.h +0 -5
@@ -130,11 +130,6 @@ void *extend_brk(size_t size, size_t align); : : "i" (sz)); \ } -/* Helper for reserving space for arrays of things */ -#define RESERVE_BRK_ARRAY (type, name, entries) \ - type *name; \ - RESERVE_BRK(name, sizeof(type) * entries) -extern void probe_roms (void );#ifdef __i386__
arch/x86/kernel/setup.c +3 -3
@@ -66,7 +66,7 @@ RESERVE_BRK(dmi_alloc, 65536);/* * Range of the BSS area. The size of the BSS area is determined -* at link time, with RESERVE_BRK*() facility reserving additional +* at link time, with RESERVE_BRK() facility reserving additional * chunks. */ unsigned long _brk_start = (unsigned long )__brk_base;
@@ -1039,8 +1039,8 @@ void __init setup_arch(char **cmdline_p)/* * Need to conclude brk, before e820__memblock_setup() -* it could use memblock_find_in_range, could overlap with -* brk area. +* it could use memblock_find_in_range, could overlap with +* brk area. */ reserve_brk ();
Signature · 1 line
2.29.2
[tip: x86/cleanups] x86/setup: Remove unused RESERVE_BRK_ARRAY()
The following commit has been merged into the x86/cleanups branch of tip:
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 81519f778830d1ab02274eeaaeab6797fdc4ec52 Gitweb: https://git.kernel.org/tip/81519f778830d1ab02274eeaaeab6797fdc4ec52 Author: Cao jin <[email protected]> AuthorDate: Thu, 11 Mar 2021 16:39:19 +08:00 Committer: Borislav Petkov <[email protected]> CommitterDate: Thu, 11 Mar 2021 11:47:37 +01:00
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 <[email protected]>
Signed-off-by Borislav Petkov <[email protected]>
--- arch/x86/include/asm/setup.h | 5 ----- arch/x86/kernel/setup.c | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-)
arch/x86/include/asm/setup.h +0 -5
@@ -130,11 +130,6 @@ void *extend_brk(size_t size, size_t align); : : "i" (sz)); \ } -/* Helper for reserving space for arrays of things */ -#define RESERVE_BRK_ARRAY (type, name, entries) \ - type *name; \ - RESERVE_BRK(name, sizeof(type) * entries) -extern void probe_roms (void );#ifdef __i386__
arch/x86/kernel/setup.c +3 -3
@@ -65,7 +65,7 @@ RESERVE_BRK(dmi_alloc, 65536);/* * Range of the BSS area. The size of the BSS area is determined -* at link time, with RESERVE_BRK*() facility reserving additional +* at link time, with RESERVE_BRK() facility reserving additional * chunks. */ unsigned long _brk_start = (unsigned long )__brk_base;
@@ -1038,8 +1038,8 @@ void __init setup_arch(char **cmdline_p)/* * Need to conclude brk, before e820__memblock_setup() -* it could use memblock_find_in_range, could overlap with -* brk area. +* it could use memblock_find_in_range, could overlap with +* brk area. */ reserve_brk ();