From c74b426f5bce11a1711da57ccff106d76e5a8c10 Mon Sep 17 00:00:00 2001 From: mucor Date: Tue, 15 Jun 2021 20:47:51 +0800 Subject: [PATCH] fix: remove redundant headfile 1.remove redundant headfile in kernel, such as: compiler.h;debug.h;automount.h;inode.h;syslog.h;net.h; 2.split fs.h to file.h and driver.h 3.move vnode.h and path_cache.h to vfs/include 4.remove redundant interface and defines close: #I3RTNR Signed-off-by: mucor --- arm_virt/config/cfiflash/cfiflash.h | 2 +- arm_virt/liteos_a/config/board/include/mtd_common.h | 2 +- drivers/uart/uart_hi35xx.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arm_virt/config/cfiflash/cfiflash.h b/arm_virt/config/cfiflash/cfiflash.h index 1fcc95c..5d354f1 100644 --- a/arm_virt/config/cfiflash/cfiflash.h +++ b/arm_virt/config/cfiflash/cfiflash.h @@ -15,7 +15,7 @@ #ifndef __CFIFLASH_H__ #define __CFIFLASH_H__ -#include "fs/fs.h" +#include "fs/driver.h" #include "mtd_dev.h" #ifdef __cplusplus diff --git a/arm_virt/liteos_a/config/board/include/mtd_common.h b/arm_virt/liteos_a/config/board/include/mtd_common.h index 5041b75..991560b 100644 --- a/arm_virt/liteos_a/config/board/include/mtd_common.h +++ b/arm_virt/liteos_a/config/board/include/mtd_common.h @@ -16,7 +16,7 @@ #ifndef __MTD_COMMON_H__ #define __MTD_COMMON_H__ -#include "fs/fs.h" +#include "fs/driver.h" const struct file_operations_vfs *GetMtdCharFops(void); const struct block_operations *GetDevSpinorOps(void); diff --git a/drivers/uart/uart_hi35xx.c b/drivers/uart/uart_hi35xx.c index ff488b6..f9b25f0 100644 --- a/drivers/uart/uart_hi35xx.c +++ b/drivers/uart/uart_hi35xx.c @@ -15,8 +15,6 @@ #include "los_event.h" #include "device_resource_if.h" -#include "fs/fs.h" -#include "fs_poll_pri.h" #include "hdf_base.h" #include "hdf_log.h" #include "osal_io.h" -- Gitee