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
F150936859: D45877.diff
Sun, Apr 5, 1:44 AM
Unknown Object (File)
Mon, Mar 30, 10:23 AM
Unknown Object (File)
Mon, Mar 30, 3:42 AM
Unknown Object (File)
Sun, Mar 29, 10:35 PM
Unknown Object (File)
Thu, Mar 19, 1:58 AM
Unknown Object (File)
Mon, Mar 9, 9:09 AM
Unknown Object (File)
Mar 1 2026, 11:00 AM
Unknown Object (File)
Feb 28 2026, 9:44 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58507
Build 55395: arc lint + arc unit