Page MenuHomeFreeBSD

linuxkpi: pm: Add more defines and includes
ClosedPublic

Authored by manu on Aug 2 2022, 3:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 11:54 PM
Unknown Object (File)
Jan 23 2024, 3:28 AM
Unknown Object (File)
Dec 20 2023, 1:37 AM
Unknown Object (File)
Dec 12 2023, 12:32 PM
Unknown Object (File)
Aug 10 2023, 8:41 PM
Unknown Object (File)
Aug 8 2023, 11:42 AM
Unknown Object (File)
Aug 8 2023, 11:42 AM
Unknown Object (File)
Aug 8 2023, 10:53 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.