From df9270ef134498d4fffb921286375137d3639ae5 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 12 Feb 2024 01:26:33 -0500 Subject: Replace kernel header includes in include/mach/mach_types.h with forward declarations. I was trying to reuse TASK_NAME_SIZE in kern/thread.h but it was impossible because files included from kern/task.h end up requiring kern/thread.h (through percpu.h), creating a recursive dependency. With this change, mach_types.h only defines forward declarations and modules have to explicitly include the appropriate header file if they want to be able touch those structures. Most of the other includes are required because we no longer grab many different includes through mach_types.h. Message-ID: <20240212062634.1082207-1-flaviocruz@gmail.com> --- device/io_req.h | 1 + 1 file changed, 1 insertion(+) (limited to 'device') diff --git a/device/io_req.h b/device/io_req.h index e66e0800..fb636969 100644 --- a/device/io_req.h +++ b/device/io_req.h @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3