summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-09-30 14:21:13 +0200
committerJuergen Gross <jgross@suse.com>2021-10-05 08:36:19 +0200
commit9c11112c0ec7ec322cd495320c3ab9fa8bdc1bbc (patch)
treeb34a1ab56c9f30c99a8d5feee8d7f8d178d30d59 /arch/x86/xen/enlighten.c
parentx86/PVH: adjust function/data placement (diff)
downloadlinux-9c11112c0ec7ec322cd495320c3ab9fa8bdc1bbc.tar.xz
linux-9c11112c0ec7ec322cd495320c3ab9fa8bdc1bbc.zip
xen/x86: adjust data placement
Both xen_pvh and xen_start_flags get written just once early during init. Using the respective annotation then allows the open-coded placing in .data to go away. Additionally the former, like the latter, wants exporting, or else xen_pvh_domain() can't be used from modules. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/8155ed26-5a1d-c06f-42d8-596d26e75849@suse.com Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 57efb484e7df..95d970359e17 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -75,7 +75,7 @@ EXPORT_SYMBOL_GPL(xen_have_vector_callback);
*/
enum xen_domain_type __ro_after_init xen_domain_type = XEN_NATIVE;
EXPORT_SYMBOL_GPL(xen_domain_type);
-uint32_t xen_start_flags __section(".data") = 0;
+uint32_t __ro_after_init xen_start_flags;
EXPORT_SYMBOL(xen_start_flags);
/*