summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2019-07-02 13:00:00 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2019-07-11 07:12:15 +0200
commit26239bfee943b5e6bbf8ee03a9cf76208d90adfa (patch)
tree905f531f932358f3f6c814e02008034706e7befe
parentb6eab2a491184dcf6361baeca709c3d781a165bb (diff)
downloadbarebox-26239bfee943b5e6bbf8ee03a9cf76208d90adfa.tar.gz
barebox-26239bfee943b5e6bbf8ee03a9cf76208d90adfa.tar.xz
sandbox: eliminale no previous prototype for ‘sandbox_add_device’ warning
The patch fixes the following gcc-8.3.0 warning: arch/sandbox/board/devices.c:13:5: warning: no previous prototype for ‘sandbox_add_device’ [-Wmissing-prototypes] int sandbox_add_device(struct device_d *dev) ^~~~~~~~~~~~~~~~~~ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/sandbox/board/devices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sandbox/board/devices.c b/arch/sandbox/board/devices.c
index 10d6b67cc4..242a0d718e 100644
--- a/arch/sandbox/board/devices.c
+++ b/arch/sandbox/board/devices.c
@@ -6,6 +6,7 @@
#include <common.h>
#include <driver.h>
+#include <mach/linux.h>
#include <init.h>
static LIST_HEAD(sandbox_device_list);