]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: Move struct kimage forward declaration before use
author谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Thu, 25 Jun 2026 05:03:49 +0000 (13:03 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 25 Jun 2026 05:03:49 +0000 (13:03 +0800)
commitd4e58d2c21d94282d512979dfa7e045c5034b0be
tree598e783541b84e57082b34f8010abd7e7ba3f3f6
parentf2539c56c74691e7a88af6372ba2b48c06ed2fe4
LoongArch: Move struct kimage forward declaration before use

arch_kimage_file_post_load_cleanup() and load_other_segments(), both
inside the CONFIG_KEXEC_FILE block, take a struct kimage pointer before
the forward declaration appears. Move the forward declaration above so
it precedes its first use instead of relying on a transitive include.

Fixes: d162feec6b6e ("LoongArch: Add preparatory infrastructure for kexec_file")
Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/kexec.h