From: kernel test robot <yujie.liu@intel.com>
To: Edward Liaw <edliaw@google.com>
Cc: <oe-kbuild-all@lists.linux.dev>,
Linux Memory Management List <linux-mm@kvack.org>,
Shuah Khan <skhan@linuxfoundation.org>,
"Muhammad Usama Anjum" <usama.anjum@collabora.com>,
Mark Brown <broonie@kernel.org>,
"John Hubbard" <jhubbard@nvidia.com>
Subject: [linux-next:master 12023/12533] ./../kselftest_harness.h:54:15: error: expected parameter declarator
Date: Mon, 13 May 2024 09:40:52 +0800 [thread overview]
Message-ID: <202405130312.R5mxIDyQ-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 75fa778d74b786a1608d55d655d42b480a6fa8bd
commit: daef47b89efd0b745e8478d69a3ad724bd8b4dc6 [12023/12533] selftests: Compile kselftest headers with -D_GNU_SOURCE
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <yujie.liu@intel.com>
| Closes: https://lore.kernel.org/r/202405130312.R5mxIDyQ-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from hid_bpf.c:5:
>> ./../kselftest_harness.h:54:15: error: expected parameter declarator
54 | static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
| ^
>> ./../kselftest_harness.h:54:15: error: expected ')'
./../kselftest_harness.h:54:14: note: to match this '('
54 | static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
| ^
>> ./../kselftest_harness.h:54:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
54 | static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
| ^
| int
3 errors generated.
--
>> reuseport_bpf_cpu.c:15:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
15 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> reuseport_bpf_numa.c:7:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
7 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> reuseport_dualstack.c:14:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
14 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> tls.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> tun.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> tap.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> so_incoming_cpu.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> nettest.c:7:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
7 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> psock_fanout.c:30:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
30 | #define _GNU_SOURCE /* for sched_setaffinity */
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> msg_zerocopy.c:28:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
28 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> test_cachestat.c:2:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
2 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> test_execve.c:2:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
2 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> clone3.c:5:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
5 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> clone3_clear_sighand.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> clone3_set_tid.c:9:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
9 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> clone3_cap_checkpoint_restore.c:11:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
11 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> close_range_test.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> udmabuf.c:2:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
2 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> devpts_pts.c:2:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
2 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> dnotify_test.c:2:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
2 | #define _GNU_SOURCE /* needed to get the defines */
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
--
>> binderfs_test.c:3:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
3 | #define _GNU_SOURCE
| ^
<command line>:1:9: note: previous definition is here
1 | #define _GNU_SOURCE 1
| ^
1 warning generated.
vim +54 tools/testing/selftests/hid/./../kselftest_harness.h
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 52
e80068be21824e tools/testing/selftests/kselftest_harness.h Kees Cook 2020-06-22 53 #ifndef _GNU_SOURCE
daef47b89efd0b tools/testing/selftests/kselftest_harness.h Edward Liaw 2024-05-07 @54 static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
e80068be21824e tools/testing/selftests/kselftest_harness.h Kees Cook 2020-06-22 55 #endif
369130b63178e0 tools/testing/selftests/kselftest_harness.h Mickaël Salaün 2017-08-07 56 #include <asm/types.h>
65177e47d3035c tools/testing/selftests/kselftest_harness.h Jakub Kicinski 2023-01-25 57 #include <ctype.h>
369130b63178e0 tools/testing/selftests/kselftest_harness.h Mickaël Salaün 2017-08-07 58 #include <errno.h>
369130b63178e0 tools/testing/selftests/kselftest_harness.h Mickaël Salaün 2017-08-07 59 #include <stdbool.h>
b5bb6d3068eabb tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-12-10 60 #include <stdint.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 61 #include <stdio.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 62 #include <stdlib.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 63 #include <string.h>
0ef67a888375b0 tools/testing/selftests/kselftest_harness.h Kees Cook 2020-06-22 64 #include <sys/mman.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 65 #include <sys/types.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 66 #include <sys/wait.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 67 #include <unistd.h>
63e6b2a42342c3 tools/testing/selftests/kselftest_harness.h Kees Cook 2022-03-24 68 #include <setjmp.h>
c99ee51a9d9716 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 69
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-13 1:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202405130312.R5mxIDyQ-lkp@intel.com \
--to=yujie.liu@intel.com \
--cc=broonie@kernel.org \
--cc=edliaw@google.com \
--cc=jhubbard@nvidia.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=skhan@linuxfoundation.org \
--cc=usama.anjum@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).