summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorZhengyi Shen <shenzhengyi@gmail.com>2017-03-29 09:00:20 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-03-31 10:43:42 +0200
commit6b1cc946ddfcfc17d66c7d02eafa14deeb183437 (patch)
tree2047b4f63ce16a5987af37efe5de316a2b051b91 /arch
parentx86/mce/AMD: Give a name to MCA bank 3 when accessed with legacy MSRs (diff)
downloadlinux-6b1cc946ddfcfc17d66c7d02eafa14deeb183437.tar.xz
linux-6b1cc946ddfcfc17d66c7d02eafa14deeb183437.zip
x86/boot: Include missing header file
Sparse complains about missing forward declarations: arch/x86/boot/compressed/error.c:8:6: warning: symbol 'warn' was not declared. Should it be static? arch/x86/boot/compressed/error.c:15:6: warning: symbol 'error' was not declared. Should it be static? Include the missing header file. Signed-off-by: Zhengyi Shen <shenzhengyi@gmail.com> Acked-by: Kess Cook <keescook@chromium.org> Link: http://lkml.kernel.org/r/1490770820-24472-1-git-send-email-shenzhengyi@gmail.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/boot/compressed/error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/error.c b/arch/x86/boot/compressed/error.c
index 6248740b68b5..31922023de49 100644
--- a/arch/x86/boot/compressed/error.c
+++ b/arch/x86/boot/compressed/error.c
@@ -4,6 +4,7 @@
* memcpy() and memmove() are defined for the compressed boot environment.
*/
#include "misc.h"
+#include "error.h"
void warn(char *m)
{