From 6ec87da84f57fe0d007224dfc584db4fa3df4a0d Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Fri, 1 Jun 2018 14:54:11 +0200 Subject: src/commonlib/storage: Move include to sd_mmc.h Non of the .c files is using a function from console.h directly. Include console.h is moved to sd_mmc.h, where sdhc_error("msg..") is defined. Change-Id: Ic9283f227a37785056b9fac216fabcac054066a0 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26752 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/commonlib/storage/bouncebuf.c | 1 - src/commonlib/storage/mmc.c | 1 - src/commonlib/storage/pci_sdhci.c | 1 - src/commonlib/storage/sd_mmc.h | 1 + src/commonlib/storage/sdhci.c | 1 - src/commonlib/storage/sdhci_display.c | 1 - src/commonlib/storage/storage_erase.c | 1 - src/commonlib/storage/storage_write.c | 1 - 8 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src/commonlib/storage') diff --git a/src/commonlib/storage/bouncebuf.c b/src/commonlib/storage/bouncebuf.c index c8125aaa42..6ddfb70af5 100644 --- a/src/commonlib/storage/bouncebuf.c +++ b/src/commonlib/storage/bouncebuf.c @@ -16,7 +16,6 @@ */ #include -#include #include "bouncebuf.h" #include #include "storage.h" diff --git a/src/commonlib/storage/mmc.c b/src/commonlib/storage/mmc.c index ca067054e0..d88e469291 100644 --- a/src/commonlib/storage/mmc.c +++ b/src/commonlib/storage/mmc.c @@ -20,7 +20,6 @@ */ #include -#include #include #include "sd_mmc.h" #include "mmc.h" diff --git a/src/commonlib/storage/pci_sdhci.c b/src/commonlib/storage/pci_sdhci.c index c53ab001a9..329b652abb 100644 --- a/src/commonlib/storage/pci_sdhci.c +++ b/src/commonlib/storage/pci_sdhci.c @@ -20,7 +20,6 @@ #include #include -#include #include #include "sd_mmc.h" #include "storage.h" diff --git a/src/commonlib/storage/sd_mmc.h b/src/commonlib/storage/sd_mmc.h index d54bbc7537..b9aea46b5d 100644 --- a/src/commonlib/storage/sd_mmc.h +++ b/src/commonlib/storage/sd_mmc.h @@ -18,6 +18,7 @@ #include #include #include +#include #define SD_MMC_IO_RETRIES 1000 diff --git a/src/commonlib/storage/sdhci.c b/src/commonlib/storage/sdhci.c index a5508ee032..158e28b648 100644 --- a/src/commonlib/storage/sdhci.c +++ b/src/commonlib/storage/sdhci.c @@ -19,7 +19,6 @@ #include #include "bouncebuf.h" -#include #include #include #include diff --git a/src/commonlib/storage/sdhci_display.c b/src/commonlib/storage/sdhci_display.c index d05e35a8d7..68747f4b86 100644 --- a/src/commonlib/storage/sdhci_display.c +++ b/src/commonlib/storage/sdhci_display.c @@ -20,7 +20,6 @@ #include #include #include -#include #include "sdhci.h" #include "sd_mmc.h" #include "storage.h" diff --git a/src/commonlib/storage/storage_erase.c b/src/commonlib/storage/storage_erase.c index 004a200154..8e97755238 100644 --- a/src/commonlib/storage/storage_erase.c +++ b/src/commonlib/storage/storage_erase.c @@ -19,7 +19,6 @@ * GNU General Public License for more details. */ -#include #include "sd_mmc.h" #include "storage.h" diff --git a/src/commonlib/storage/storage_write.c b/src/commonlib/storage/storage_write.c index ae9fbc2c5e..ba60b41306 100644 --- a/src/commonlib/storage/storage_write.c +++ b/src/commonlib/storage/storage_write.c @@ -19,7 +19,6 @@ * GNU General Public License for more details. */ -#include #include "sd_mmc.h" #include "storage.h" #include -- cgit v1.2.3