Page MenuHomeFreeBSD

pci: Narrow the scope of recently-added PCI_IOV #ifdefs
ClosedPublic

Authored by jhb on Jul 5 2024, 3:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 31, 11:37 PM
Unknown Object (File)
Dec 26 2025, 5:37 AM
Unknown Object (File)
Dec 15 2025, 1:58 AM
Unknown Object (File)
Nov 29 2025, 8:34 AM
Unknown Object (File)
Nov 26 2025, 6:32 PM
Unknown Object (File)
Nov 11 2025, 8:32 PM
Unknown Object (File)
Nov 8 2025, 6:32 AM
Unknown Object (File)
Nov 3 2025, 8:10 PM
Subscribers

Details

Summary

Push the #ifdefs down into the function body instead of defining
functions conditionally for ease of readability. These aren't
critical paths, so one extra branch in the !PCI_IOV case is not a big
deal.

Requested by: jrtc27

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable