Skip to content
Commit 715ad3e0 authored by Juergen Gross's avatar Juergen Gross
Browse files

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: 368990a7 ("xen: fix multicall debug data referencing")
Reported-by: default avatarBorislav Petkov <bp@alien8.de>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: default avatar"Borislav Petkov (AMD)" <bp@alien8.de>
Tested-by: default avatar"Borislav Petkov (AMD)" <bp@alien8.de>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Message-ID: <20250327190602.26015-1-jgross@suse.com>
parent 64a66e2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment