]> www.infradead.org Git - nvme.git/commit
xen: fix multicall debug feature
authorJuergen Gross <jgross@suse.com>
Thu, 27 Mar 2025 19:06:02 +0000 (20:06 +0100)
committerJuergen Gross <jgross@suse.com>
Fri, 11 Apr 2025 07:44:50 +0000 (09:44 +0200)
commit715ad3e0ec2b13c27335749f27a5c9f0c0e84064
tree2dfa777509caa559a0f22b9f6ed764e3d54c0d68
parent64a66e2c3b3113dc78a6124e14825d68ddc2e188
xen: fix multicall debug feature

Initializing a percpu variable with the address of a struct tagged as
.initdata is breaking the build with CONFIG_SECTION_MISMATCH_WARN_ONLY
not set to "y".

Fix that by using an access function instead returning the .initdata
struct address if the percpu space of the struct hasn't been
allocated yet.

Fixes: 368990a7fe30 ("xen: fix multicall debug data referencing")
Reported-by: Borislav Petkov <bp@alien8.de>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: "Borislav Petkov (AMD)" <bp@alien8.de>
Tested-by: "Borislav Petkov (AMD)" <bp@alien8.de>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20250327190602.26015-1-jgross@suse.com>
arch/x86/xen/multicalls.c
arch/x86/xen/smp_pv.c
arch/x86/xen/xen-ops.h