Page MenuHomeFreeBSD

LinuxKPI: pci: use unsigned int for vendor/device arguemnts
ClosedPublic

Authored by bz on Jul 31 2025, 7:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 4:04 AM
Unknown Object (File)
Sun, Nov 2, 4:39 AM
Unknown Object (File)
Sat, Nov 1, 5:43 AM
Unknown Object (File)
Wed, Oct 29, 10:06 AM
Unknown Object (File)
Sat, Oct 25, 7:55 PM
Unknown Object (File)
Oct 12 2025, 1:13 AM
Unknown Object (File)
Oct 11 2025, 3:42 PM
Unknown Object (File)
Oct 11 2025, 3:42 PM
Subscribers

Details

Summary

Linux drivers may pass a typed PCI_ANY_ID (-1U) in which then leads
to a warning that the value gets truncated. Switch argument types
to unsigned int (or uint32_t as we use in struct pci_device_id) to
avoid the problem.

Sponsored by: The FreeBSD Foundation
Discussed in: D50008
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 65862
Build 62745: arc lint + arc unit