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
F175628729: D51652.id159507.diff
Mon, Oct 12, 3:56 AM
F175620405: D51652.id159488.diff
Mon, Oct 12, 2:39 AM
Unknown Object (File)
Tue, Sep 29, 5:39 PM
Unknown Object (File)
Sep 10 2026, 3:20 PM
Unknown Object (File)
Sep 10 2026, 2:23 PM
Unknown Object (File)
Sep 9 2026, 9:16 AM
Unknown Object (File)
Sep 7 2026, 4:38 PM
Unknown Object (File)
Sep 7 2026, 12:46 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 Not Applicable
Unit
Tests Not Applicable