HomeFreeBSD

LinuxKPI: pci: use unsigned int for vendor/device arguments

Description

LinuxKPI: pci: use unsigned int for vendor/device arguments

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
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D51652

Details

Provenance
bzAuthored on Jul 31 2025, 7:24 AM
Reviewer
emaste
Differential Revision
D51652: LinuxKPI: pci: use unsigned int for vendor/device arguemnts
Parents
rG421bf3a96867: LinuxKPI: pci: fix argument type to linuxkpi_pci_iomap[_range]
Branches
Unknown
Tags
Unknown