From 0538411c0911ec1eacaaf4ff07ab3a230df5a757 Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Tue, 26 Sep 2023 10:32:01 +0800 Subject: [PATCH] drivers: mm: refine includes of the header Refines the `system_mm.h` to include `zephyr/types.h` instead of `zephyr/kernel.h` as that is all it needs. Updated the includes of `mm_drv_ti_rat.c` accordingly. Signed-off-by: Yong Cong Sin --- drivers/mm/mm_drv_ti_rat.c | 1 + include/zephyr/drivers/mm/system_mm.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mm/mm_drv_ti_rat.c b/drivers/mm/mm_drv_ti_rat.c index da085b72f23..b82bbc162ac 100644 --- a/drivers/mm/mm_drv_ti_rat.c +++ b/drivers/mm/mm_drv_ti_rat.c @@ -19,6 +19,7 @@ * the address space. */ +#include #include #include #include diff --git a/include/zephyr/drivers/mm/system_mm.h b/include/zephyr/drivers/mm/system_mm.h index e407041889e..c76f1097f65 100644 --- a/include/zephyr/drivers/mm/system_mm.h +++ b/include/zephyr/drivers/mm/system_mm.h @@ -15,7 +15,7 @@ #ifndef ZEPHYR_INCLUDE_DRIVERS_SYSTEM_MM_H_ #define ZEPHYR_INCLUDE_DRIVERS_SYSTEM_MM_H_ -#include +#include #ifndef _ASMLANGUAGE