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)
Thu, Mar 19, 1:58 AM
Unknown Object (File)
Mon, Mar 9, 9:09 AM
Unknown Object (File)
Sun, Mar 1, 11:00 AM
Unknown Object (File)
Sat, Feb 28, 9:44 AM
Unknown Object (File)
Dec 31 2025, 11:37 PM
Unknown Object (File)
Dec 26 2025, 5:37 AM
Unknown Object (File)
Dec 15 2025, 1:58 AM
Unknown Object (File)
Nov 29 2025, 8:34 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