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, Jul 30, 6:20 PM
Unknown Object (File)
Mon, Jul 20, 9:41 AM
Unknown Object (File)
Sun, Jul 19, 7:04 PM
Unknown Object (File)
Wed, Jul 8, 8:56 PM
Unknown Object (File)
Wed, Jul 8, 11:29 AM
Unknown Object (File)
Wed, Jul 8, 5:11 AM
Unknown Object (File)
Jun 21 2026, 7:04 PM
Unknown Object (File)
Jun 11 2026, 2:16 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