projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c9640
)
tools: Add missing stdio.h include to asm/bug.h header
author
Jiri Olsa
<jolsa@kernel.org>
Thu, 12 Sep 2019 08:57:18 +0000
(10:57 +0200)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 25 Sep 2019 12:51:44 +0000
(09:51 -0300)
We have a direct fprintf() call in the header, so we need stdio.h
include, otherwise it could fail compilation if there's no prior stdio.h
include directive.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link:
http://lkml.kernel.org/n/tip-8hvjgh24olfsa4non0a3ohnq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/asm/bug.h
patch
|
blob
|
history
diff --git
a/tools/include/asm/bug.h
b/tools/include/asm/bug.h
index bbd75ac8b202920fa38076a9c4d296a215f36051..550223f0a6e6d7c8a78d64a65c90c0b6a4e336d5 100644
(file)
--- a/
tools/include/asm/bug.h
+++ b/
tools/include/asm/bug.h
@@
-3,6
+3,7
@@
#define _TOOLS_ASM_BUG_H
#include <linux/compiler.h>
+#include <stdio.h>
#define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0)