Page MenuHomeFreeBSD

linuxkpi: Move `GENMASK()` to <linux/bits.h>
ClosedPublic

Authored by dumbbell on Apr 22 2026, 6:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 4, 6:54 PM
Unknown Object (File)
Sat, Oct 3, 8:30 PM
Unknown Object (File)
Fri, Oct 2, 7:47 AM
Unknown Object (File)
Thu, Oct 1, 5:58 PM
Unknown Object (File)
Tue, Sep 29, 10:35 PM
Unknown Object (File)
Tue, Sep 29, 8:23 AM
Unknown Object (File)
Sun, Sep 27, 11:40 PM
Unknown Object (File)
Fri, Sep 18, 10:31 AM
Subscribers

Details

Summary

... from <linux/bitops.h>.

This matches the location on Linux.

<linux/bits.h> is also included from <linux/bitops.h>. Therefore it will not break anything.

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

Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

bz requested changes to this revision.Apr 22 2026, 7:15 PM
bz added a subscriber: bz.
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/bits.h
5

Sorry, but both commit claim to come from someone else:

b5c541821abfc5d74d3f7279527da5029eec2725 Obtained from kmacy and
5d503e30ad2e7627505867180ae25fbaf4dc37c7 Submitted by Johannes Lundberg <johalun0@gmail.com>

(no idea why the first hash doesn't become a link to a ocmmit)

This revision now requires changes to proceed.Apr 22 2026, 7:15 PM
This revision is now accepted and ready to land.Apr 22 2026, 7:59 PM