Re: [PATCH v4 RESEND] x86/asm/entry/32, selftests: Add 'test_syscall_vdso' test

From: Ingo Molnar
Date: Tue Sep 15 2015 - 02:05:22 EST



* Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:

> tools/testing/selftests/x86/Makefile | 2 +-
> tools/testing/selftests/x86/test_syscall_vdso.c | 401 ++++++++++++++++++++++++
> tools/testing/selftests/x86/thunks_32.S | 55 ++++
> 3 files changed, 457 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/x86/test_syscall_vdso.c
> create mode 100644 tools/testing/selftests/x86/thunks_32.S

So I wanted to apply this testcase (testcases are great!), but there's a build
warning:

test_syscall_vdso.c: In function âprint_flagsâ:
test_syscall_vdso.c:239:4: warning: format not a string literal and no format arguments [-Wformat-security]
printf(bitstr[(r >> bit) & 1]);
^

That's with GCC 4.9.2.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/