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

ia64: make num_rsvd_regions static

Commit f62800992e5917f2 ("ia64: switch to NO_BOOTMEM") removed the last
user of num_rsvd_regions outside arch/ia64/kernel/setup.c.

Link: https://lkml.kernel.org/r/a377b5437e3e9da93d02f996fe06a2b956cb0990.1629884459.git.geert+renesas@glider.be
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Jay Lan <jlan@sgi.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Simon Horman <horms@verge.net.au>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Geert Uytterhoeven and committed by
Linus Torvalds
7e4265c8 70b2e991

+1 -2
-1
arch/ia64/include/asm/meminit.h
··· 29 29 }; 30 30 31 31 extern struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1]; 32 - extern int num_rsvd_regions; 33 32 34 33 extern void find_memory (void); 35 34 extern void reserve_memory (void);
+1 -1
arch/ia64/kernel/setup.c
··· 131 131 * We use a special marker for the end of memory and it uses the extra (+1) slot 132 132 */ 133 133 struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1] __initdata; 134 - int num_rsvd_regions __initdata; 134 + static int num_rsvd_regions __initdata; 135 135 136 136 137 137 /*