Hi Andrew,
This patch series contains some miscellaneous fixes and cleanups for
ia64. The second patch fixes a naming conflict triggered by a patch for
the FDT code.
This has been compile-tested only, due to lack of hardware.
Thanks!
Geert Uytterhoeven (3):
ia64: Fix #endif comment for reserve_elfcorehdr()
ia64: Make reserve_elfcorehdr() static
ia64: Make num_rsvd_regions static
arch/ia64/include/asm/meminit.h | 2 --
arch/ia64/kernel/setup.c | 53 ++++++++++++++++-----------------
2 files changed, 26 insertions(+), 29 deletions(-)
--
2.25.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
@@ -325,6 +325,31 @@ static inline void __init setup_crashkernel(unsigned long total, int *n){}#endif+#ifdef CONFIG_CRASH_DUMP+staticint__initreserve_elfcorehdr(u64*start,u64*end)+{+u64length;++/* We get the address using the kernel command line,+*butthesizeisextractedfromtheEFItables.+*Bothaddressandsizearerequiredforreservation+*toworkproperly.+*/++if(!is_vmcore_usable())+return-EINVAL;++if((length=vmcore_find_descriptor_size(elfcorehdr_addr))==0){+vmcore_unusable();+return-EINVAL;+}++*start=(unsignedlong)__va(elfcorehdr_addr);+*end=*start+length;+return0;+}+#endif /* CONFIG_CRASH_DUMP */+/***reserve_memory-setupreservedmemoryareas*
@@ -522,32 +547,6 @@ static __init int setup_nomca(char *s)}early_param("nomca",setup_nomca);-#ifdef CONFIG_CRASH_DUMP-int__initreserve_elfcorehdr(u64*start,u64*end)-{-u64length;--/* We get the address using the kernel command line,-*butthesizeisextractedfromtheEFItables.-*Bothaddressandsizearerequiredforreservation-*toworkproperly.-*/--if(!is_vmcore_usable())-return-EINVAL;--if((length=vmcore_find_descriptor_size(elfcorehdr_addr))==0){-vmcore_unusable();-return-EINVAL;-}--*start=(unsignedlong)__va(elfcorehdr_addr);-*end=*start+length;-return0;-}--#endif /* CONFIG_CRASH_DUMP */-void__initsetup_arch(char**cmdline_p){
From: Simon Horman <horms@verge.net.au> Date: 2021-09-06 07:05:30
On Wed, Aug 25, 2021 at 01:48:29PM +0200, Geert Uytterhoeven wrote:
Commit f62800992e5917f2 ("ia64: switch to NO_BOOTMEM") removed the last
user of num_rsvd_regions outside arch/ia64/kernel/setup.c.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
From: Simon Horman <horms@verge.net.au> Date: 2021-09-06 07:07:53
On Wed, Aug 25, 2021 at 01:48:28PM +0200, Geert Uytterhoeven wrote:
There never was a reason for reserve_elfcorehdr() to be global.
Make the function static, and move it before its sole caller.
Fixes: cee87af2a5f75713 ("[IA64] kexec: Use EFI_LOADER_DATA for ELF core header")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>