summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-21 15:33:09 -0600
committerNico Huber <nico.h@gmx.de>2019-06-23 21:39:48 +0000
commit6c68363d0c1db0fd5e2ac95fb4adeaf254f669a7 (patch)
treed04d0449d10e7d37744447aebae8530af02edd9a
parentbeeb8bc925bef6973e1c9fa6c4fd26a4113a1777 (diff)
downloadflashrom-6c68363d0c1db0fd5e2ac95fb4adeaf254f669a7.tar.gz
flashrom-6c68363d0c1db0fd5e2ac95fb4adeaf254f669a7.tar.bz2
flashrom-6c68363d0c1db0fd5e2ac95fb4adeaf254f669a7.zip
tree: Include missing headers for function prototypes
These files all contain functions whose prototypes are in header files, so make sure those header files are included. Change-Id: I0189a1550bf90d4a0b87dcef9f8a8449590cc9d7 Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/flashrom/+/33668 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r--edi.c1
-rw-r--r--hwaccess.c1
-rw-r--r--sst_fwhub.c1
-rw-r--r--udelay.c1
-rw-r--r--w29ee011.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/edi.c b/edi.c
index bd5b269b5..a2219ac6c 100644
--- a/edi.c
+++ b/edi.c
@@ -16,6 +16,7 @@
#include <string.h>
#include "flash.h"
+#include "chipdrivers.h"
#include "ene.h"
#include "edi.h"
diff --git a/hwaccess.c b/hwaccess.c
index bb5aac444..48ccb3485 100644
--- a/hwaccess.c
+++ b/hwaccess.c
@@ -27,6 +27,7 @@
#include <fcntl.h>
#endif
#include "flash.h"
+#include "programmer.h"
#include "hwaccess.h"
#if !(IS_LINUX || IS_MACOSX || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) || defined(__DJGPP__) || defined(__LIBPAYLOAD__) || defined(__sun) || defined(__gnu_hurd__))
diff --git a/sst_fwhub.c b/sst_fwhub.c
index 398b01b40..c7123034f 100644
--- a/sst_fwhub.c
+++ b/sst_fwhub.c
@@ -19,6 +19,7 @@
/* Adapted from the Intel FW hub stuff for 82802ax parts. */
#include "flash.h"
+#include "chipdrivers.h"
static int check_sst_fwhub_block_lock(struct flashctx *flash, int offset)
{
diff --git a/udelay.c b/udelay.c
index f6fd103ca..6c0efc436 100644
--- a/udelay.c
+++ b/udelay.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <limits.h>
#include "flash.h"
+#include "programmer.h"
static bool use_clock_gettime = false;
diff --git a/w29ee011.c b/w29ee011.c
index 8a62e4c71..a570bd6d1 100644
--- a/w29ee011.c
+++ b/w29ee011.c
@@ -16,6 +16,7 @@
#include <string.h>
#include "flash.h"
+#include "chipdrivers.h"
/* According to the Winbond W29EE011, W29EE012, W29C010M, W29C011A
* datasheets this is the only valid probe function for those chips.