From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/3] sandbox: eliminale no previous prototype for ‘sandbox_add_device’ warning
Date: Tue, 2 Jul 2019 13:00:00 +0300 [thread overview]
Message-ID: <20190702100001.28530-3-antonynpavlov@gmail.com> (raw)
In-Reply-To: <20190702100001.28530-1-antonynpavlov@gmail.com>
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>
---
arch/sandbox/board/devices.c | 1 +
1 file changed, 1 insertion(+)
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);
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-07-02 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 9:59 [PATCH 0/3] sandbox fixes Antony Pavlov
2019-07-02 9:59 ` [PATCH 1/3] sandbox: prevent segfault in tap_alloc() Antony Pavlov
2019-07-02 10:00 ` Antony Pavlov [this message]
2019-07-02 10:00 ` [PATCH 3/3] sandbox: drop blank lines at EOF Antony Pavlov
2019-07-04 6:50 ` [PATCH 0/3] sandbox fixes Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190702100001.28530-3-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox