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, Sep 30, 9:42 PM
Unknown Object (File)
Sun, Sep 20, 1:11 AM
Unknown Object (File)
Sep 7 2026, 6:45 PM
Unknown Object (File)
Sep 6 2026, 4:17 PM
Unknown Object (File)
Sep 5 2026, 9:22 PM
Unknown Object (File)
Aug 21 2026, 4:12 AM
Unknown Object (File)
Aug 15 2026, 6:09 PM
Unknown Object (File)
Aug 12 2026, 3:48 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