From 1b6f0e88a309251de7ccaa21bf5e078c8d9eb8ed Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Thu, 2 Nov 2023 20:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20fix=20d1s=20smart=20build?= =?UTF-8?q?=20(#8212)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h | 1 + bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c | 1 + libcpu/risc-v/t-head/c906/cpuport.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h b/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h index c8aa75c442..47fd8112a4 100644 --- a/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h +++ b/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h @@ -12,6 +12,7 @@ #define DRV_SDMMC_H__ #include +#include #define SDMMC_CARD_NR 2 diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c b/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c index 994e95574c..16778a5f36 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c @@ -8,6 +8,7 @@ #include #include #include +#include #define MIN(a, b) ((a) > (b) ? (b) : (a)) #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1) diff --git a/libcpu/risc-v/t-head/c906/cpuport.h b/libcpu/risc-v/t-head/c906/cpuport.h index 640c5281cf..68780bfe6d 100644 --- a/libcpu/risc-v/t-head/c906/cpuport.h +++ b/libcpu/risc-v/t-head/c906/cpuport.h @@ -37,7 +37,7 @@ #define CTX_REG_NR (CTX_GENERAL_REG_NR + CTX_FPU_REG_NR) #ifndef __ASSEMBLY__ -#include +#include rt_inline void rt_hw_dsb() {