From 6de0a16fa1ba6c8a02f33bf4f2d7e71659bafdec Mon Sep 17 00:00:00 2001 From: mucor Date: Tue, 15 Jun 2021 20:57:13 +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 --- source/diskio.c | 1 - source/ff.h | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/diskio.c b/source/diskio.c index de2b119..ef4aba1 100644 --- a/source/diskio.c +++ b/source/diskio.c @@ -8,7 +8,6 @@ /*-----------------------------------------------------------------------*/ #include "diskio.h" #ifndef __LITEOS_M__ -#include "fs/fs.h" #include "string.h" #include "disk.h" #else diff --git a/source/ff.h b/source/ff.h index 41cc3c0..c3bbc8f 100644 --- a/source/ff.h +++ b/source/ff.h @@ -24,10 +24,12 @@ extern "C" { #endif +#include +#include #include "integer.h" /* Basic integer types */ #include "ffconf.h" /* FatFs configuration options */ #ifdef LOSCFG_FS_FAT_VIRTUAL_PARTITION -#include "fs/fs.h" +#include "virpart.h" #endif #ifndef __LITEOS_M__ #include "los_list.h" @@ -35,7 +37,6 @@ extern "C" { #if FF_DEFINED != FFCONF_DEF #error Wrong configuration file (ffconf.h). #endif -#include "dirent.h" /*--------------------------------*/ /* LFN/Directory working buffer */ -- GitLab