]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selftests/harness: Update named initializer syntax
authorKees Cook <keescook@chromium.org>
Sun, 27 Jan 2019 09:42:51 +0000 (01:42 -0800)
committerShuah Khan <shuah@kernel.org>
Wed, 13 Feb 2019 15:52:35 +0000 (08:52 -0700)
commit121e357ac72836662cc13598d0e835fe846f1c95
tree3dfa20c103dd98c4a2a4e2b8da2ba16d64e9b45b
parent30d53a5860cf6743db011719d414456b10773d6a
selftests/harness: Update named initializer syntax

The harness was still using old-style GNU named initializer syntax.
Fix this so Clang will stop warning:

seccomp_bpf.c:2924:1: warning: use of GNU old-style field designator extension
      [-Wgnu-designator]
./../kselftest_harness.h:147:25: note: expanded from macro 'TEST'
                        ^
./../kselftest_harness.h:172:5: note: expanded from macro '__TEST_IMPL'
                  fn: &test_name, termsig: _signal }; \
                  ^

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/kselftest_harness.h