diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-03-18 22:49:36 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-20 20:27:51 +0000 |
commit | a1e22b8192d5fc85995a41d0961c25293ba4391f (patch) | |
tree | 7b7dbc885d3ac99fe029cf0961eda1052e753dc1 /src/commonlib/storage | |
parent | 0eb4db185cfef44ddfdbd91d4fe69a48c127fa84 (diff) |
src: Use 'include <string.h>' when appropriate
Drop 'include <string.h>' when it is not used and
add it when it is missing.
Also extra lines removed, or added just before local includes.
Change-Id: Iccac4dbaa2dd4144fc347af36ecfc9747da3de20
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31966
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/commonlib/storage')
-rw-r--r-- | src/commonlib/storage/pci_sdhci.c | 4 | ||||
-rw-r--r-- | src/commonlib/storage/sd.c | 1 | ||||
-rw-r--r-- | src/commonlib/storage/sdhci.c | 1 | ||||
-rw-r--r-- | src/commonlib/storage/storage_write.c | 3 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/commonlib/storage/pci_sdhci.c b/src/commonlib/storage/pci_sdhci.c index 2bba084d11..a2d30949b3 100644 --- a/src/commonlib/storage/pci_sdhci.c +++ b/src/commonlib/storage/pci_sdhci.c @@ -22,8 +22,10 @@ #include <commonlib/sdhci.h> #include <device/pci.h> #include <device/pci_ops.h> -#include "sd_mmc.h" #include <stdint.h> +#include <string.h> + +#include "sd_mmc.h" #include "storage.h" /* Initialize an SDHCI port */ diff --git a/src/commonlib/storage/sd.c b/src/commonlib/storage/sd.c index bd23b7f70c..1389ffb409 100644 --- a/src/commonlib/storage/sd.c +++ b/src/commonlib/storage/sd.c @@ -26,7 +26,6 @@ #include <endian.h> #include "sd_mmc.h" #include "storage.h" -#include <string.h> #include <timer.h> int sd_send_if_cond(struct storage_media *media) diff --git a/src/commonlib/storage/sdhci.c b/src/commonlib/storage/sdhci.c index 06dffb1c0c..1370a91a14 100644 --- a/src/commonlib/storage/sdhci.c +++ b/src/commonlib/storage/sdhci.c @@ -27,7 +27,6 @@ #include "sdhci.h" #include "sd_mmc.h" #include "storage.h" -#include <string.h> #include <timer.h> #include <commonlib/stdlib.h> diff --git a/src/commonlib/storage/storage_write.c b/src/commonlib/storage/storage_write.c index aef8624127..d21cc293db 100644 --- a/src/commonlib/storage/storage_write.c +++ b/src/commonlib/storage/storage_write.c @@ -19,9 +19,10 @@ * GNU General Public License for more details. */ +#include <stdlib.h> + #include "sd_mmc.h" #include "storage.h" -#include <string.h> static uint32_t storage_write(struct storage_media *media, uint32_t start, uint64_t block_count, const void *src) |