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
Unknown Object (File)
Wed, Aug 12, 12:59 AM
Unknown Object (File)
Tue, Aug 11, 11:54 PM
Unknown Object (File)
Tue, Aug 11, 11:30 PM
Unknown Object (File)
Sun, Aug 9, 8:08 PM
Unknown Object (File)
Sun, Aug 9, 2:36 AM
Unknown Object (File)
Sun, Aug 9, 1:30 AM
Unknown Object (File)
Sat, Aug 8, 4:18 PM
Unknown Object (File)
Sat, Aug 8, 5:17 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