Page MenuHomeFreeBSD

LinuxKPI: pci: fix argument type to linuxkpi_pci_iomap[_range]
ClosedPublic

Authored by bz on Jul 31 2025, 7:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 1:13 AM
Unknown Object (File)
Sun, Oct 12, 1:13 AM
Unknown Object (File)
Sun, Oct 12, 1:13 AM
Unknown Object (File)
Sat, Oct 11, 3:42 PM
Unknown Object (File)
Tue, Oct 7, 4:29 AM
Unknown Object (File)
Tue, Oct 7, 4:19 AM
Unknown Object (File)
Sep 15 2025, 9:55 AM
Unknown Object (File)
Sep 9 2025, 7:22 AM
Subscribers

Details

Summary

The last argument (maxlen) to linuxkpi_pci_iomap_range and
linuxkpi_pci_iomap is an unsigned long not an int. LinuxKPI is
not using that argument in the end but fix it where needed.
While here adjust the name to 'maxlen' and remove the "mmio_" to
bar and off.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Jul 31 2025, 7:19 AM
This revision is now accepted and ready to land.Jul 31 2025, 10:21 AM
sys/compat/linuxkpi/common/src/linux_pci.c
805–806

Forgot to bring this over from the larger change; will be part of the commit. s/mimo_off/off/