Page MenuHomeFreeBSD

linuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c
ClosedPublic

Authored by imp on Apr 4 2022, 5:04 PM.
Tags
None
Referenced Files
F94579169: D34773.diff
Tue, Sep 17, 6:33 PM
F94383067: D34773.diff
Tue, Sep 17, 2:55 AM
F94292709: D34773.diff
Mon, Sep 16, 7:46 PM
Unknown Object (File)
Mon, Sep 16, 11:47 AM
Unknown Object (File)
Wed, Sep 11, 10:01 AM
Unknown Object (File)
Wed, Sep 11, 4:49 AM
Unknown Object (File)
Fri, Sep 6, 7:09 PM
Unknown Object (File)
Wed, Sep 4, 1:57 AM

Details

Summary

Both pci_request_region and _lkpi_pci_iomap encode the size of struct
pci_mmio_region into their code. Move from .h to .c files to move that
knowledge from the client drivers into the linuxkpi module.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44991
Build 41879: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 4 2022, 5:04 PM
hselasky added a subscriber: hselasky.
hselasky added inline comments.
sys/compat/linuxkpi/common/src/linux_pci.c
758

Maybe _lkpi_pci_request_region will be required. Make sure LINT passes.

This revision is now accepted and ready to land.Apr 4 2022, 5:20 PM
sys/compat/linuxkpi/common/src/linux_pci.c
758

I don't think we need this since FreeBSD doesn't have a conflicting global symbol.
LINT on x86 passes and a grep shows no conflicts: just linuxkpi drivers and this definition.