x86/setup: Remove unused RESERVE_BRK_ARRAY()
authorCao jin <jojing64@gmail.com>
Thu, 11 Mar 2021 08:39:19 +0000 (16:39 +0800)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 10:47:37 +0000 (11:47 +0100)
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
arch/x86/include/asm/setup.h
arch/x86/kernel/setup.c

index 389d851a02c4fd55cab18a10b4d277bb12b093ab..a12458a7a8d4af15b9380a0d4cc336a6d1c80723 100644 (file)
@@ -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__
 
index d883176ef2ce04c1f86465b433d4a3b8ec74549e..cdf7bbdc07e2c1ae70bccb1d0b44a7bdddef6549 100644 (file)
@@ -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();