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)
Sun, Feb 9, 9:15 PM
Unknown Object (File)
Jan 6 2025, 5:24 AM
Unknown Object (File)
Dec 24 2024, 9:27 AM
Unknown Object (File)
Nov 14 2024, 8:50 PM
Unknown Object (File)
Nov 5 2024, 11:40 AM
Unknown Object (File)
Nov 4 2024, 5:19 AM
Unknown Object (File)
Oct 9 2024, 10:13 AM
Unknown Object (File)
Sep 25 2024, 10:40 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.