diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-09-12 04:57:18 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-25 08:51:44 -0400 |
commit | 058bd857845a9675cfaf4bc2ca831ec7953b58f1 (patch) | |
tree | 0748b576ffbe3013fb2af8936af3b0b5c643ed6a /tools | |
parent | 33c96400dcd34d572299b8106e1b0460a1b8bae9 (diff) |
tools: Add missing stdio.h include to asm/bug.h header
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/include/asm/bug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/asm/bug.h b/tools/include/asm/bug.h index bbd75ac8b202..550223f0a6e6 100644 --- a/tools/include/asm/bug.h +++ b/tools/include/asm/bug.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #define _TOOLS_ASM_BUG_H | 3 | #define _TOOLS_ASM_BUG_H |
4 | 4 | ||
5 | #include <linux/compiler.h> | 5 | #include <linux/compiler.h> |
6 | #include <stdio.h> | ||
6 | 7 | ||
7 | #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) | 8 | #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) |
8 | 9 | ||