From nobody Fri Oct 3 21:00:03 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DE69253956; Mon, 25 Aug 2025 05:52:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756101143; cv=none; b=qncYH0KKXHVv26yGtIEpdccNLQCSpp3wJcHcl0QQKszQaWkEU6tuguKclpzr5gwftcUCkZfJYzyx9JgdDsYKNlEMshKzJErCT784Tg/609HNYs91vWk4Cc7gnlmU6QoJq1sphH/Shfy1G1ZJod5V+G76YOfp9yoz2oFovlKMmmE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756101143; c=relaxed/simple; bh=C1mhFW4EtqItRh2JEAtWzKMW9KSimWDCbUejPFlijj4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=NolweSSyFTksA/uP4XW7Ixf1FqoIjRB9oWpWkVBvUv1Oc+/32dOhZtqvRbr2syUQV1GTCmPGxNxAs2xKUhEVFG9Bzqv1oVkWJs0V3rgWLRP0aq/R1qOCx4iiuD6PKfb3ciIhfaH0txZgrvoou9h+iRlqAWUGejfM0TgkD1Bo8IE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=ssQfsSnY; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="ssQfsSnY" Received: from namjain-Virtual-Machine.mshome.net (unknown [4.213.232.43]) by linux.microsoft.com (Postfix) with ESMTPSA id 5F0B32117594; Sun, 24 Aug 2025 22:52:17 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5F0B32117594 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1756101140; bh=GqNVmV4kZeRKOSH4HZ31Q5GlpTvvo6nFonJGSLPaQmo=; h=From:To:Cc:Subject:Date:From; b=ssQfsSnYEWgGmEtPvOBcGSp8D0qIvo1cgVDOy91x5ns3tPTguvGPPIP639eFUpuRt SmQ8d3uxSXK3qFvSINCnYsi0O/tI/FK7efo61tmMJcY3ZO7HmYDa5nKOuIzkyH59Oq wbrEa/VW/HIv+nYSvz+rXuyOVDFrVlLj5Uuj9qlI= From: Naman Jain To: "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra Subject: [PATCH] x86/hyperv: Export hv_hypercall_pg unconditionally Date: Mon, 25 Aug 2025 11:22:08 +0530 Message-Id: <20250825055208.238729-1-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" With commit 0e20f1f4c2cb ("x86/hyperv: Clean up hv_do_hypercall()"), config checks were added to conditionally restrict export of hv_hypercall_pg symbol at the same time when a usage of that symbol was added in mshv_vtl_main.c driver. This results in missing symbol warning when mshv_vtl_main is compiled. Change the logic to export it unconditionally. Fixes: 96a1d2495c2f ("Drivers: hv: Introduce mshv_vtl driver") Signed-off-by: Naman Jain --- Omitted cc:stable tag, since mshv_vtl_main changes have not yet landed in stable/rc kernels. I can add if required. --- arch/x86/hyperv/hv_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/hyperv/hv_init.c b/arch/x86/hyperv/hv_init.c index 896e2913bc41..0ba9cae9ffaf 100644 --- a/arch/x86/hyperv/hv_init.c +++ b/arch/x86/hyperv/hv_init.c @@ -36,6 +36,7 @@ #include =20 void *hv_hypercall_pg; +EXPORT_SYMBOL_GPL(hv_hypercall_pg); =20 #ifdef CONFIG_X86_64 static u64 __hv_hyperfail(u64 control, u64 param1, u64 param2) @@ -73,7 +74,6 @@ static inline void hv_set_hypercall_pg(void *ptr) { hv_hypercall_pg =3D ptr; } -EXPORT_SYMBOL_GPL(hv_hypercall_pg); #endif =20 union hv_ghcb * __percpu *hv_ghcb_pg; --=20 2.34.1