Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
058bd857 33c96400

+1
+1
tools/include/asm/bug.h
··· 3 3 #define _TOOLS_ASM_BUG_H 4 4 5 5 #include <linux/compiler.h> 6 + #include <stdio.h> 6 7 7 8 #define __WARN_printf(arg...) do { fprintf(stderr, arg); } while (0) 8 9