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)
Sun, Oct 4, 6:44 PM
Unknown Object (File)
Sun, Oct 4, 1:07 PM
Unknown Object (File)
Sat, Oct 3, 12:57 PM
Unknown Object (File)
Fri, Oct 2, 8:19 PM
Unknown Object (File)
Thu, Oct 1, 5:27 PM
Unknown Object (File)
Tue, Sep 29, 4:10 PM
Unknown Object (File)
Tue, Sep 29, 3:41 AM
Unknown Object (File)
Sun, Sep 27, 11:31 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.Apr 22 2026, 7:08 PM