+9
−14
Loading
stable inclusion from stable-v6.6.64 commit 92f7cc84c3dbbfb71a453d5de21e00f1b31a49b0 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBEDPC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=92f7cc84c3dbbfb71a453d5de21e00f1b31a49b0 -------------------------------- [ Upstream commit adfaec30ffaceecd565e06adae367aa944acc3c9 ] We anyway don't use any return values from fadump_cma_init(). Since fadump_reserve_mem() from where fadump_cma_init() gets called today, already has the required checks. This patch makes this function return type as void. Let's also handle extra cases like return if fadump_supported is false or dump_active, so that in later patches we can call fadump_cma_init() separately from setup_arch(). Acked-by:Hari Bathini <hbathini@linux.ibm.com> Reviewed-by:
Madhavan Srinivasan <maddy@linux.ibm.com> Signed-off-by:
Ritesh Harjani (IBM) <ritesh.list@gmail.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Link: https://patch.msgid.link/a2afc3d6481a87a305e89cfc4a3f3d2a0b8ceab3.1729146153.git.ritesh.list@gmail.com Stable-dep-of: 05b94cae1c47 ("powerpc/fadump: Move fadump_cma_init to setup_arch() after initmem_init()") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com> Signed-off-by:
Liao Chen <liaochen4@huawei.com>