]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/hyperv: Fix smp_ops build failure on UP kernels
authorIngo Molnar <mingo@kernel.org>
Wed, 28 Jan 2026 10:35:20 +0000 (11:35 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Jan 2026 10:54:04 +0000 (11:54 +0100)
commitac059ae422d7d05ed9d62970a30fa3b95870b967
tree55ed8136fd84ea65133205e683dde5e8810b3a02
parent63804fed149a6750ffd28610c5c1c98cce6bd377
x86/hyperv: Fix smp_ops build failure on UP kernels

CI testing found this build failure:

  arch/x86/hyperv/hv_crash.c:631:9: error: ‘smp_ops’ undeclared (first use in this function)

And I bisected it back to the initial commit that enabled this feature:

  77c860d2dbb72d1f3c6a2e882a07d19eca399db5 is the first bad commit
  commit 77c860d2dbb72d1f3c6a2e882a07d19eca399db5 (HEAD)
  Author: Mukesh Rathor <mrathor@linux.microsoft.com>
  Date:   Mon Oct 6 15:42:08 2025 -0700

  x86/hyperv: Enable build of hypervisor crashdump collection files

Hyperv should probably be limited to SMP kernels, as nobody
appears to be testing it on UP kernels.

Until then, fix the smp_ops assumption. Build tested only.

Fixes: 77c860d2dbb72 ("x86/hyperv: Enable build of hypervisor crashdump collection files")
Cc: Mukesh Rathor <mrathor@linux.microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/hyperv/hv_crash.c