Page MenuHomeFreeBSD

linuxkpi: Move `IS_ENABLED()` and friends to <linux/kconfig.h>
ClosedPublic

Authored by dumbbell on Feb 13 2023, 9:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 9 2024, 7:30 AM
Unknown Object (File)
Feb 20 2024, 6:43 AM
Unknown Object (File)
Jan 13 2024, 10:41 PM
Unknown Object (File)
Dec 20 2023, 8:24 AM
Unknown Object (File)
Nov 18 2023, 11:17 AM
Unknown Object (File)
Oct 26 2023, 11:08 AM
Unknown Object (File)
Sep 25 2023, 3:30 PM
Unknown Object (File)
Aug 26 2023, 3:25 PM

Details

Summary

The header is included in <linux/xarray.h> like it is on Linux. Some DRM code depends on this header "pollution".

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

Diff Detail

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

Event Timeline

bz requested changes to this revision.Feb 13 2023, 10:28 PM
bz added a subscriber: bz.
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/kconfig.h
9

I think I or the FreeBSD Foundation would claim the copyright on those additions if separated out into an extra file.
By themselves they weren't significant enough to claim Copyright back then but in a separate file we should.
None of those people above hold the copyright on what came in to kernel.h in 4abbf816bf06a and now is below.

Can you grab the entire header part from asm/unaligned.h (year 2020 is correct for when this was developed as well; got committed in Jan 2021).

This revision now requires changes to proceed.Feb 13 2023, 10:28 PM

@bz: The header is fixed, thanks!

This revision is now accepted and ready to land.Feb 14 2023, 10:11 PM