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>
This commit is contained in:
Jiri Olsa 2019-09-12 10:57:18 +02:00 committed by Arnaldo Carvalho de Melo
parent 33c96400dc
commit 058bd85784
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#define _TOOLS_ASM_BUG_H #define _TOOLS_ASM_BUG_H
#include <linux/compiler.h> #include <linux/compiler.h>
#include <stdio.h>
#define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0)