HomeFreeBSD

LinuxKPI: Remove sys/rman.h include from LKPI headers.

Description

LinuxKPI: Remove sys/rman.h include from LKPI headers.

sys/rman.h defines resource structure which conflicts with the Linux
structure of the same name. To fix that remove reference to sys/rman.h
from linux/pci.h and move resource management code to linux_pci.c.
Update consumers which were depending on linux/pci.h pollution.

No functional changes intended.

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42792

(cherry picked from commit 96ab16ebab6319dce9b3041961b0ab6e20a4fecc)

Details

Provenance
wulfAuthored on Dec 24 2023, 8:19 AM
Differential Revision
D42792: LinuxKPI: Remove sys/rman.h include from LKPI headers.
Parents
rG356bfb0878a6: linuxkpi: Include <linux/string_helpers.h> from <linux/seq_file.h>
Branches
Unknown
Tags
Unknown