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)
Mon, May 18, 4:30 AM
Unknown Object (File)
Mon, May 18, 4:23 AM
Unknown Object (File)
Sun, May 17, 4:25 PM
Unknown Object (File)
Sun, May 17, 4:20 PM
Unknown Object (File)
Thu, May 14, 2:59 PM
Unknown Object (File)
Thu, May 14, 2:59 PM
Unknown Object (File)
Wed, May 13, 11:46 PM
Unknown Object (File)
Wed, May 13, 11:46 PM
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.Wed, Apr 22, 7:08 PM