HomeFreeBSD

pci: return 0 for pci_remap_intr_method MSI-X non-error case

Description

pci: return 0 for pci_remap_intr_method MSI-X non-error case

When remapping a MSI-X vector, we would always return ENOENT, even if
successful. This didn't really matter, as the sole caller of
BUS_REMAP_INTR also didn't check for errors.

Return 0 if there's no error, so that we can start handling (or at least
warning about) actual failures.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41449

(cherry picked from commit 43e545e8e016d22346a4fe278ea2570328b20cc1)

Details

Provenance
emasteAuthored on Aug 14 2023, 8:35 PM
Reviewer
jhb
Differential Revision
D41449: pci: return 0 for pci_remap_intr_method MSI-X non-error case
Parents
rG47048a611dd2: Set UFS/FFS file type to snapshot before changing its block pointers.
Branches
Unknown
Tags
Unknown