From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew F. Davis Date: Fri, 6 Jan 2017 13:09:49 -0600 Subject: [U-Boot] [PATCH 2/2] spl: Remove inline ifdef check for EXT and FAT support In-Reply-To: <20170106190949.22986-1-afd@ti.com> References: <20170106190949.22986-1-afd@ti.com> Message-ID: <20170106190949.22986-2-afd@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de These files are only included for build by the make system when CONFIG_SPL_{EXT,FAT}_SUPPORT is enabled, remove the unneed checks for these in the source files. Signed-off-by: Andrew F. Davis --- common/spl/spl_ext.c | 2 -- common/spl/spl_fat.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index 9fe1c026bf..954891f570 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -9,7 +9,6 @@ #include #include -#ifdef CONFIG_SPL_EXT_SUPPORT int spl_load_image_ext(struct blk_desc *block_dev, int partition, const char *filename) @@ -135,4 +134,3 @@ int spl_load_image_ext_os(struct blk_desc *block_dev, int partition) return -ENOSYS; } #endif -#endif diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index bb78445d6a..9339dc81a3 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -19,7 +19,6 @@ static int fat_registered; -#ifdef CONFIG_SPL_FAT_SUPPORT static int spl_register_fat_device(struct blk_desc *block_dev, int partition) { int err = 0; @@ -151,4 +150,3 @@ int spl_load_image_fat_os(struct blk_desc *block_dev, int partition) return -ENOSYS; } #endif -#endif -- 2.11.0