aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2015-07-21 12:53:13 +0930
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-13 16:22:29 +1000
commitb4769a78327e3216c741b1edd556e1e9265f1109 (patch)
treeb4f2de3d6a9b5496766d9acc7288f7601f150bae
parent6bc3d9531e4428d9b5944b1b2edb8f91b95811c3 (diff)
downloadskiboot-b4769a78327e3216c741b1edd556e1e9265f1109.zip
skiboot-b4769a78327e3216c741b1edd556e1e9265f1109.tar.gz
skiboot-b4769a78327e3216c741b1edd556e1e9265f1109.tar.bz2
Add prototype in asm-offsets to silence clang
asm/asm-offsets.c:31:5: error: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] int main(void) Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--asm/asm-offsets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/asm/asm-offsets.c b/asm/asm-offsets.c
index 6278c5c..060eb31 100644
--- a/asm/asm-offsets.c
+++ b/asm/asm-offsets.c
@@ -28,6 +28,8 @@
#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(struct str, mem))
+int main(void);
+
int main(void)
{
OFFSET(SPIRA_ACTUAL_SIZE, spira, reserved);