[PATCH 2/2] arch/x86: Fix sparse warning symbol not declared
From: Tobin C. Harding
Date: Sun Feb 12 2017 - 01:45:49 EST
This patch adds function declaration in order to quiet sparse symbol
not declared warning.
Signed-off-by: Tobin C. Harding <me@xxxxxxxx>
---
Unsure why adding declaration quiets sparse. This may not be the
correct solution. Only testing done is building and booting kernel.
Since 'purgatory' is called from assembler and does not need forward
declaration the only advantage to this patch seems to be to save the
next newbie from investigating the sparse warning.
arch/x86/purgatory/purgatory.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86/purgatory/purgatory.c
index 2a2cbe5..129433c 100644
--- a/arch/x86/purgatory/purgatory.c
+++ b/arch/x86/purgatory/purgatory.c
@@ -18,6 +18,8 @@ struct sha_region {
unsigned long len;
};
+void purgatory(void);
+
static unsigned long backup_dest = 0;
static unsigned long backup_src = 0;
static unsigned long backup_sz = 0;
--
2.7.4