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)
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
Unknown Object (File)
Dec 31 2025, 11:37 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