Page MenuHomeFreeBSD

linuxkpi: pm: Add more defines and includes
ClosedPublic

Authored by manu on Aug 2 2022, 3:32 PM.
Tags
None
Referenced Files
F102517352: D36024.id.diff
Wed, Nov 13, 11:19 AM
Unknown Object (File)
Sep 30 2024, 9:15 AM
Unknown Object (File)
Sep 25 2024, 3:39 AM
Unknown Object (File)
Sep 23 2024, 3:24 PM
Unknown Object (File)
Sep 22 2024, 5:21 AM
Unknown Object (File)
Sep 16 2024, 12:38 PM
Unknown Object (File)
Sep 6 2024, 5:13 PM
Unknown Object (File)
Sep 5 2024, 2:03 AM

Details

Summary

Needed by drm-kmod.

Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

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

Event Timeline

manu requested review of this revision.Aug 2 2022, 3:32 PM
This revision is now accepted and ready to land.Aug 2 2022, 4:11 PM
sys/compat/linuxkpi/common/include/linux/pm.h
44–45

curious - do we actually need an empty struct?

sys/compat/linuxkpi/common/include/linux/pm.h
37

drm needs this but linux_usb.c doesn't like it ...
Will probably remove this and patch drm.

44–45

It's used in some struct for amdgpu and radeon, even if it's not used after (it's not guarded correctly upstream iirc)

bz added inline comments.
sys/compat/linuxkpi/common/include/linux/pm.h
44–45

Yes. Often. Sounds weird, is weird, but also avoids changing upstream code. I'd rather have the empty struct (often filled a bit over time), than start changing imported code.

sys/compat/linuxkpi/common/include/linux/pm.h
37

I have more of things linux_usb.c in LinuxKPI doesn't like. I hope to detangle linux_usb.c from out base USB some more the next months as I need a LinuxKPI struct device there as well.
If you decide to change drm, make a note so we can "fix" it later, as in leve the #include #if 0 with a comment or similar please.

sys/compat/linuxkpi/common/include/linux/pm.h
44–45

got it

This revision was automatically updated to reflect the committed changes.