Date: Fri, 31 Jan 2025 16:03:07 GMT From: =?utf-8?Q?Jean-S=C3=A9bastien?= =?utf-8?Q?P=C3=A9dron?= <dumbbell@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 2cd532415386 - main - linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes Message-ID: <202501311603.50VG37lV038333@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=2cd53241538632fa1c731fbf85384b785e77bd1b commit 2cd53241538632fa1c731fbf85384b785e77bd1b Author: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> AuthorDate: 2024-12-21 21:56:53 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> CommitDate: 2025-01-31 16:00:46 +0000 linuxkpi: Add idr.h -> radix-tree.h -> rcupdate.h includes [Why] Some files in DRM rely on namespace pollution: they use the <linux/rcupdate.h> API without including it explicitly. [How] Reproduce the Linux chain of includes even if it means nothing on FreeBSD. This allows consumers of <linux/idr.h> to "inherit" <linux/rcupdate.h> API. Reviewed by: manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48741 --- sys/compat/linuxkpi/common/include/linux/idr.h | 1 + sys/compat/linuxkpi/common/include/linux/radix-tree.h | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/idr.h b/sys/compat/linuxkpi/common/include/linux/idr.h index 7f55b8e57c7e..535d8ce07fb4 100644 --- a/sys/compat/linuxkpi/common/include/linux/idr.h +++ b/sys/compat/linuxkpi/common/include/linux/idr.h @@ -34,6 +34,7 @@ #include <sys/limits.h> #include <sys/mutex.h> +#include <linux/radix-tree.h> #include <linux/gpf.h> #include <linux/types.h> diff --git a/sys/compat/linuxkpi/common/include/linux/radix-tree.h b/sys/compat/linuxkpi/common/include/linux/radix-tree.h index a1204cb20a79..ea75836c26fb 100644 --- a/sys/compat/linuxkpi/common/include/linux/radix-tree.h +++ b/sys/compat/linuxkpi/common/include/linux/radix-tree.h @@ -29,6 +29,7 @@ #ifndef _LINUXKPI_LINUX_RADIX_TREE_H_ #define _LINUXKPI_LINUX_RADIX_TREE_H_ +#include <linux/rcupdate.h> #include <linux/types.h> #define RADIX_TREE_MAP_SHIFT 6
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501311603.50VG37lV038333>