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)
Fri, Oct 3, 11:01 AM
Unknown Object (File)
Sep 3 2025, 7:19 AM
Unknown Object (File)
Sep 2 2025, 11:58 PM
Unknown Object (File)
Sep 1 2025, 2:24 PM
Unknown Object (File)
Sep 1 2025, 12:56 PM
Unknown Object (File)
Sep 1 2025, 10:10 AM
Unknown Object (File)
Aug 23 2025, 1:07 AM
Unknown Object (File)
Jul 25 2025, 11:07 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