Page MenuHomeFreeBSD

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

Authored by dumbbell on Apr 22 2026, 6:58 PM.
Tags
None
Referenced Files
F167511049: D56584.id176144.diff
Sat, Aug 22, 9:33 AM
F167509873: D56584.id176167.diff
Sat, Aug 22, 9:25 AM
F167509823: D56584.id176154.diff
Sat, Aug 22, 9:25 AM
F167509693: D56584.diff
Sat, Aug 22, 9:24 AM
Unknown Object (File)
Wed, Aug 12, 7:07 PM
Unknown Object (File)
Sun, Aug 9, 3:09 PM
Unknown Object (File)
Sun, Aug 9, 1:24 AM
Unknown Object (File)
Sun, Aug 9, 12:44 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 Skipped
Unit
Tests Skipped

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