From: Lianbo Jiang <liji...@redhat.com> [ Upstream commit 112eee5d06007dae561f14458bde7f2a4879ef4e ]
Add a forward declaration of struct kimage to the crash.h header because future changes will invoke a crash-specific function from the realmode init path and the compiler will complain otherwise like this: In file included from arch/x86/realmode/init.c:11: ./arch/x86/include/asm/crash.h:5:32: warning: ‘struct kimage’ declared inside\ parameter list will not be visible outside of this definition or declaration 5 | int crash_load_segments(struct kimage *image); | ^~~~~~ ./arch/x86/include/asm/crash.h:6:37: warning: ‘struct kimage’ declared inside\ parameter list will not be visible outside of this definition or declaration 6 | int crash_copy_backup_region(struct kimage *image); | ^~~~~~ ./arch/x86/include/asm/crash.h:7:39: warning: ‘struct kimage’ declared inside\ parameter list will not be visible outside of this definition or declaration 7 | int crash_setup_memmap_entries(struct kimage *image, | [ bp: Rewrite the commit message. ] Reported-by: kbuild test robot <l...@intel.com> Signed-off-by: Lianbo Jiang <liji...@redhat.com> Signed-off-by: Borislav Petkov <b...@suse.de> Cc: b...@redhat.com Cc: d.hatay...@fujitsu.com Cc: dhowe...@redhat.com Cc: dyo...@redhat.com Cc: ebied...@xmission.com Cc: ho...@verge.net.au Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Ingo Molnar <mi...@redhat.com> Cc: Jürgen Gross <jgr...@suse.com> Cc: kexec@lists.infradead.org Cc: Thomas Gleixner <t...@linutronix.de> Cc: Tom Lendacky <thomas.lenda...@amd.com> Cc: vgo...@redhat.com Cc: x86-ml <x...@kernel.org> Link: https://lkml.kernel.org/r/20191108090027.11082-4-liji...@redhat.com Link: https://lkml.kernel.org/r/201910310233.ejrttmwp%25...@intel.com Signed-off-by: Sasha Levin <sas...@kernel.org> --- arch/x86/include/asm/crash.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/crash.h b/arch/x86/include/asm/crash.h index a7adb2bfbf0b..6b8ad6fa3979 100644 --- a/arch/x86/include/asm/crash.h +++ b/arch/x86/include/asm/crash.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_CRASH_H #define _ASM_X86_CRASH_H +struct kimage; + int crash_load_segments(struct kimage *image); int crash_copy_backup_region(struct kimage *image); int crash_setup_memmap_entries(struct kimage *image, -- 2.20.1 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec