Page MenuHomeFreeBSD

linuxkpi: Move {lower,upper}_32_bits macros to <linux/wordpart.h>
ClosedPublic

Authored by dumbbell on Apr 16 2026, 9:00 PM.
Tags
None
Referenced Files
F161613851: D56441.diff
Sun, Jul 5, 7:54 AM
F161612826: D56441.id176149.diff
Sun, Jul 5, 7:43 AM
F161611710: D56441.id175705.diff
Sun, Jul 5, 7:33 AM
Unknown Object (File)
Thu, Jul 2, 8:42 AM
Unknown Object (File)
Tue, Jun 30, 4:03 PM
Unknown Object (File)
Tue, Jun 23, 2:22 PM
Unknown Object (File)
Mon, Jun 22, 2:00 PM
Unknown Object (File)
Jun 5 2026, 12:28 AM
Subscribers

Details

Summary

... from <linux/compiler.h>.

<linux/wordpart.h> is the header defining them on Linux 6.12 (I didn't check older versions). <linux/wordpart.h> is also included from <linux/kernel.h>.

The DRM generic code started to depend on <linux/wordpart.h> in Linux 6.12.

This is part of the update of DRM drivers to Linux 6.12.

Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

bz added inline comments.
sys/compat/linuxkpi/common/include/linux/wordpart.h
10

The two defines came from drm-kmod a34b5bdac45 of which I have no idea where it came from but it came in 2019 into the tree, which is after all the above.
I dunno know what to do with this. @emaste @imp do you know the history of where the drm-kmod repo import came from or suggestions about what to do here?

It looks like these are @dumbbell's from rG:01655b8522ac1 and rG:740be6d75549c so can have just a Jean-Sébastien Pédron copyright I think.

This revision is now accepted and ready to land.Apr 22 2026, 7:08 PM