Index: sys/compat/linuxkpi/common/include/linux/cgroup.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/cgroup.h +++ sys/compat/linuxkpi/common/include/linux/cgroup.h @@ -29,6 +29,14 @@ #ifndef _LINUXKPI_LINUX_CGROUP_H_ #define _LINUXKPI_LINUX_CGROUP_H_ +#include +#include +#include +#include +#include +#include +#include +#include #include #endif /* _LINUXKPI_LINUX_CGROUP_H_ */ Index: sys/compat/linuxkpi/common/include/linux/file.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/file.h +++ sys/compat/linuxkpi/common/include/linux/file.h @@ -39,6 +39,11 @@ #include #include +#include +#include +#include +#include + struct linux_file; #undef file Index: sys/compat/linuxkpi/common/include/linux/i2c.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/i2c.h +++ sys/compat/linuxkpi/common/include/linux/i2c.h @@ -31,7 +31,14 @@ #include #include +#include +#include #include +#include +#include +#include +#include +#include #define I2C_MAX_ADAPTER_NAME_LENGTH 32 Index: sys/compat/linuxkpi/common/include/linux/memcontrol.h =================================================================== --- /dev/null +++ sys/compat/linuxkpi/common/include/linux/memcontrol.h @@ -0,0 +1,43 @@ +/*- + * Copyright (c) 2025 The FreeBSD Foundation + * Copyright (c) 2025 Jean-Sébastien Pédron + * + * This software was developed by Jean-Sébastien Pédron under sponsorship + * from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + + +#ifndef _LINUXKPI_LINUX_MEMCONTROL_H_ +#define _LINUXKPI_LINUX_MEMCONTROL_H_ + +#include +#include +#include +#include +#include +#include +#include +#include + +#endif /* defined(_LINUXKPI_LINUX_MEMCONTROL_H_) */ Index: sys/compat/linuxkpi/common/include/linux/notifier.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/notifier.h +++ sys/compat/linuxkpi/common/include/linux/notifier.h @@ -32,6 +32,11 @@ #include #include +#include +#include +#include +#include + #define NOTIFY_DONE 0 #define NOTIFY_OK 0x0001 #define NOTIFY_STOP_MASK 0x8000 Index: sys/compat/linuxkpi/common/include/linux/regulator/consumer.h =================================================================== --- /dev/null +++ sys/compat/linuxkpi/common/include/linux/regulator/consumer.h @@ -0,0 +1,35 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2025 Jean-Sébastien Pédron + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef _LINUXKPI_LINUX_REGULATOR_CONSUMER_H_ +#define _LINUXKPI_LINUX_REGULATOR_CONSUMER_H_ + +#include +#include + +#endif /* _LINUXKPI_LINUX_REGULATOR_CONSUMER_H_ */ Index: sys/compat/linuxkpi/common/include/linux/suspend.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/suspend.h +++ sys/compat/linuxkpi/common/include/linux/suspend.h @@ -3,6 +3,12 @@ #ifndef _LINUXKPI_LINUX_SUSPEND_H_ #define _LINUXKPI_LINUX_SUSPEND_H_ +#include +#include +#include +#include +#include + typedef int suspend_state_t; extern suspend_state_t pm_suspend_target_state; Index: sys/compat/linuxkpi/common/include/linux/swap.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/swap.h +++ sys/compat/linuxkpi/common/include/linux/swap.h @@ -37,7 +37,14 @@ #include #include +#include +#include +#include +#include +#include +#include #include +#include #include static inline long