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)
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)
Sun, Jun 21, 7:04 PM
Unknown Object (File)
Jun 11 2026, 2:16 AM
Unknown Object (File)
May 21 2026, 1:24 PM
Unknown Object (File)
May 17 2026, 11:38 PM
Unknown Object (File)
May 6 2026, 10: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