Skip to contentSkip to conversation

arch:x86/boot/compressed/error: Add declaration for necessary head file

PATCH In review Zhengyi Shen 3 participants 4 messages Mar 29, 2017 – Mar 31, 2017 x86

lore
Share & tools
lore
#0 lore raw

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
index 6248740..3192202 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Zhengyi Shen

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?

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
index 6248740..3192202 100644
@@ -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
#2 lore raw

[tip:x86/urgent] x86/boot: Include missing header file

In reply to Zhengyi Shen
x86/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
index 6248740..3192202 100644
@@ -4,6 +4,7 @@
  * memcpy() and memmove() are defined for the compressed boot environment.
  */
 #include "misc.h"
+#include "error.h"
 
 void warn(char *m)
 {
#3 lore raw

[tip:x86/boot] x86/boot: Fix Sparse warning by including required header file

In reply to Zhengyi Shen
x86/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?

Cc Kees Cook <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
[ Fixed/enhanced the changelog. ]
---
 arch/x86/boot/compressed/error.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/boot/compressed/error.c +1 -0
index 6248740..3192202 100644
@@ -4,6 +4,7 @@
  * memcpy() and memmove() are defined for the compressed boot environment.
  */
 #include "misc.h"
+#include "error.h"
 
 void warn(char *m)
 {