summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2019-11-27 14:56:37 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-01 09:14:37 +0100
commit55a6d11eb6ccb55e531fb31311a8822c8a91f52e (patch)
tree1be8624e545147f2c8eee82bdd5c5830a0b574b4 /arch/x86
parent38a2fa7519028e84023e1ab855a6be26186b20ab (diff)
x86/hyperv: mark hyperv_init as __init function
This change was done upstream as part of 6b48cb5f8347 ("X86/Hyper-V: Enlighten APIC access"), but that commit introduced a lot of new functionality we don't want to backport. This change eliminates a build warning. Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/hyperv/hv_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c
index 2653b7b25d17..924fa9c07368 100644
--- a/arch/x86/hyperv/hv_init.c
+++ b/arch/x86/hyperv/hv_init.c
@@ -125,7 +125,7 @@ static int __init hv_pci_init(void)
* 1. Setup the hypercall page.
* 2. Register Hyper-V specific clocksource.
*/
-void hyperv_init(void)
+void __init hyperv_init(void)
{
u64 guest_id, required_msrs;
union hv_x64_msr_hypercall_contents hypercall_msr;