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)
Tue, Nov 5, 11:40 AM
Unknown Object (File)
Mon, Nov 4, 5:19 AM
Unknown Object (File)
Oct 9 2024, 10:13 AM
Unknown Object (File)
Sep 25 2024, 10:40 AM
Unknown Object (File)
Sep 22 2024, 5:34 AM
Unknown Object (File)
Sep 21 2024, 5:55 PM
Unknown Object (File)
Sep 21 2024, 6:52 AM
Unknown Object (File)
Sep 18 2024, 5:58 AM
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

Event Timeline

jhb requested review of this revision.Jul 5 2024, 3:17 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2024, 7:42 PM
This revision was automatically updated to reflect the committed changes.