]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/hyperv: Clean up hv_map/unmap_interrupt() return values
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Thu, 3 Jul 2025 22:44:35 +0000 (15:44 -0700)
committerWei Liu <wei.liu@kernel.org>
Wed, 9 Jul 2025 23:49:25 +0000 (23:49 +0000)
commitfaab52b59b09721edeb8f92eabad3f4d320fb522
tree77f4da7d53fab6196b81aff7a6142295b83a9958
parentbb169f80ed5a156ec3405e0e49c6b8e9ae264718
x86/hyperv: Clean up hv_map/unmap_interrupt() return values

Fix the return values of these hypercall helpers so they return
a negated errno either directly or via hv_result_to_errno().

Update the callers to check for errno instead of using
hv_status_success(), and remove redundant error printing.

While at it, rearrange some variable declarations to adhere to style
guidelines i.e. "reverse fir tree order".

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1751582677-30930-5-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1751582677-30930-5-git-send-email-nunodasneves@linux.microsoft.com>
arch/x86/hyperv/irqdomain.c
drivers/iommu/hyperv-iommu.c