diff options
author | Tycho Andersen <[email protected]> | 2019-01-18 17:12:14 -0700 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2019-02-13 08:34:47 -0700 |
commit | a18261d71bbc625bc32abbcded71acc408cca393 (patch) | |
tree | 235b56536e5cf66b0fea8cecc057403512b91aa0 /lib/test_overflow.c | |
parent | 0b54b443a9de2db726625b2bd535fadca5b137a6 (diff) |
selftest: include stdio.h in kselftest.h
While playing around with a way to skip the seccomp get_metadata test, I
noticed that this header uses printf() without defining it, leading to,
../kselftest.h: In function ‘ksft_print_header’:
../kselftest.h:61:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("TAP version 13\n");
^~~~~~
../kselftest.h:61:3: warning: incompatible implicit declaration of built-in function ‘printf’
../kselftest.h:61:3: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
if user code doesn't also use printf.
Signed-off-by: Tycho Andersen <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions