arch:x86/boot/compressed/error: Add declaration for necessary head file
PATCH 1/1 arch:x86/boot/compressed/error: Add declaration for necessary head file
Add declaration for the error.h file to correct the sparse warnings.
Sparse warnings: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?
--- arch/x86/boot/compressed/error.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/boot/compressed/error.c +1 -0
@@ -4,6 +4,7 @@* memcpy() and memmove() are defined for the compressed boot environment. */ #include "misc.h" +#include "error.h" void warn (char *m) {
Signature · 1 line
2.7.4
Quoted 9 lines · Zhengyi Shen
Add declaration for the
error.hfile to correct the sparse warnings.Sparse warnings:
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?Signed-off-by Zhengyi Shen <[email protected]>
Thanks!
-Kees
Quoted 19 lines
--- arch/x86/boot/compressed/error.c | 1 + 1 file changed, 1 insertion(+)arch/x86/boot/compressed/error.c +1
-1@@ -4,6 +4,7 @@* memcpy() and memmove() are defined for the compressed boot environment. */ #include "misc.h" +#include "error.h" void warn (char *m) { --2.7.4
Signature · 2 lines
Kees Cook Pixel Security
tip-bot for Zhengyi Shen
merge bot[tip:x86/urgent] x86/boot: Include missing header file
In reply to Zhengyi Shenx86/boot: Include missing header file
Commit-ID: 6b1cc946ddfcfc17d66c7d02eafa14deeb183437 Gitweb: http://git.kernel.org/tip/6b1cc946ddfcfc17d66c7d02eafa14deeb183437 Author: Zhengyi Shen <[email protected]> AuthorDate: Wed, 29 Mar 2017 15:00:20 +0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Fri, 31 Mar 2017 10:43:42 +0200
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.
--- arch/x86/boot/compressed/error.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/boot/compressed/error.c +1 -0
@@ -4,6 +4,7 @@* memcpy() and memmove() are defined for the compressed boot environment. */ #include "misc.h" +#include "error.h" void warn (char *m) {
tip-bot for Zhengyi Shen
merge bot[tip:x86/boot] x86/boot: Fix Sparse warning by including required header file
In reply to Zhengyi Shenx86/boot: Fix Sparse warning by including required header file
Commit-ID: 5af218439f3a4c9ca7139a40e5d047fe1ea39551 Gitweb: http://git.kernel.org/tip/5af218439f3a4c9ca7139a40e5d047fe1ea39551 Author: Zhengyi Shen <[email protected]> AuthorDate: Wed, 29 Mar 2017 15:00:20 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 31 Mar 2017 08:13:54 +0200
x86/boot: Fix Sparse warning by including required header file
Include declarations for various symbols defined in the error.h header file to fix the following Sparse warnings:
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?
--- arch/x86/boot/compressed/error.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/boot/compressed/error.c +1 -0
@@ -4,6 +4,7 @@* memcpy() and memmove() are defined for the compressed boot environment. */ #include "misc.h" +#include "error.h" void warn (char *m) {