[PATCH v2 4/6] x86/hyperv: Clean up hv_map/unmap_interrupt() return values

Michael Kelley mhklinux at outlook.com
Sun Jul 6 20:14:01 PDT 2025


From: Nuno Das Neves <nunodasneves at linux.microsoft.com> Sent: Thursday, July 3, 2025 3:45 PM
> 
> 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 at linux.microsoft.com>
> ---
>  arch/x86/hyperv/irqdomain.c  | 32 ++++++++++++++------------------
>  drivers/iommu/hyperv-iommu.c | 33 ++++++++++++---------------------
>  2 files changed, 26 insertions(+), 39 deletions(-)

Reviewed-by: Michael Kelley <mhklinux at outlook.com>



More information about the linux-arm-kernel mailing list