From d4d60fd1f81e4158816b0840d4ee85e6de3c22d2 Mon Sep 17 00:00:00 2001 From: Akshay Tigga Date: Wed, 10 May 2023 12:08:10 -0700 Subject: [PATCH] Fix "Section mismatches detected" Error: Section mismatch in reference from the function tegra_hv_probe() to the function .init.text:tegra_hv_setup() Bug 3974840 Change-Id: Ie63e9db981836345512a0678e39b0574384e6c5a Signed-off-by: Bruce Xu Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901637 (cherry picked from commit ac941e3f8846fb4a7e20cf6df86e12be847bc530) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910057 Reviewed-by: svcacv Reviewed-by: Shardar Mohammed Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit Tested-by: Shardar Mohammed --- drivers/virt/tegra/tegra_hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virt/tegra/tegra_hv.c b/drivers/virt/tegra/tegra_hv.c index e21ca800..4ef86dd8 100644 --- a/drivers/virt/tegra/tegra_hv.c +++ b/drivers/virt/tegra/tegra_hv.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. */ #include @@ -397,7 +397,7 @@ static ssize_t vmid_show(struct class *class, } static CLASS_ATTR_RO(vmid); -static int __init tegra_hv_setup(struct tegra_hv_data *hvd) +static int tegra_hv_setup(struct tegra_hv_data *hvd) { const int intr_property_size = 3; uint64_t info_page;