Page MenuHomeFreeBSD

linuxkpi: Add missing includes leading to <linux/kconfig.h>
AbandonedPublic

Authored by dumbbell on Jun 14 2026, 9:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 25, 6:10 PM
Unknown Object (File)
Mon, Jul 20, 4:25 PM
Unknown Object (File)
Mon, Jul 20, 7:04 AM
Unknown Object (File)
Sun, Jul 19, 3:45 PM
Unknown Object (File)
Sat, Jul 11, 10:10 PM
Unknown Object (File)
Wed, Jul 1, 6:53 AM
Unknown Object (File)
Jun 25 2026, 10:48 PM
Unknown Object (File)
Jun 24 2026, 11:47 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

Several include paths lead to <linux/kconfig.h>. This commit adds those that help resolve a buil failure of the i915 DRM driver.

One awkward fix is in <linux/radix-tree.h>. On Linux, <linux/radix-tress.h> includes <linux/xarray.h>. However on FreeBSD, this is the opposite because an xarray is implemented on top of a radix-tree. Unfortunately, some code relies on the namespace pollution; for instance to implicitly import IS_ENABLED() in a header of the i915 DRM driver.

To kind of implement this order of includes, we include <linux/xarray.h> at the end of <linux/radix-tree.h>. It is at the end because <linux/xarray.h> depends on the definitions above in <linux/radix-tree.h>.

The i915 DRM driver started to depend on this namespace pollution to import IS_ENABLED() in <linux/kconfig.h>.

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

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped