From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [linux-next:master 11868/12793] ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined
Date: Tue, 14 May 2024 02:26:02 +0800 [thread overview]
Message-ID: <202405140209.ORIxFuOF-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "low confidence bisect report"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Edward Liaw <edliaw@google.com>
CC: Shuah Khan <skhan@linuxfoundation.org>
CC: Muhammad Usama Anjum <usama.anjum@collabora.com>
CC: Mark Brown <broonie@kernel.org>
CC: John Hubbard <jhubbard@nvidia.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6ba6c795dc73c22ce2c86006f17c4aa802db2a60
commit: daef47b89efd0b745e8478d69a3ad724bd8b4dc6 [11868/12793] selftests: Compile kselftest headers with -D_GNU_SOURCE
:::::: branch date: 11 hours ago
:::::: commit date: 5 days ago
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240514/202405140209.ORIxFuOF-lkp@intel.com/reproduce)
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 <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202405140209.ORIxFuOF-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from test-pcmtest-driver.c:10:
>> ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined
54 | static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
| ^
1 error generated.
--
In file included from main.c:21:
>> ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined
54 | static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
| ^
tools/testing/selftests/../../../tools/include/linux/build_bug.h:78:50: note: expanded from macro 'static_assert'
78 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~
tools/testing/selftests/../../../tools/include/linux/build_bug.h:79:56: note: expanded from macro '__static_assert'
79 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
1 error generated.
vim +54 tools/testing/selftests/alsa/./../kselftest_harness.h
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 52
e80068be21824e4 tools/testing/selftests/kselftest_harness.h Kees Cook 2020-06-22 53 #ifndef _GNU_SOURCE
daef47b89efd0b7 tools/testing/selftests/kselftest_harness.h Edward Liaw 2024-05-07 @54 static_assert(0, "kselftest harness requires _GNU_SOURCE to be defined");
e80068be21824e4 tools/testing/selftests/kselftest_harness.h Kees Cook 2020-06-22 55 #endif
369130b63178e0e tools/testing/selftests/kselftest_harness.h Mickaël Salaün 2017-08-07 56 #include <asm/types.h>
65177e47d3035c0 tools/testing/selftests/kselftest_harness.h Jakub Kicinski 2023-01-25 57 #include <ctype.h>
369130b63178e0e tools/testing/selftests/kselftest_harness.h Mickaël Salaün 2017-08-07 58 #include <errno.h>
369130b63178e0e tools/testing/selftests/kselftest_harness.h Mickaël Salaün 2017-08-07 59 #include <stdbool.h>
b5bb6d3068eabb0 tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-12-10 60 #include <stdint.h>
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 61 #include <stdio.h>
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 62 #include <stdlib.h>
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 63 #include <string.h>
0ef67a888375b0d tools/testing/selftests/kselftest_harness.h Kees Cook 2020-06-22 64 #include <sys/mman.h>
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 65 #include <sys/types.h>
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 66 #include <sys/wait.h>
c99ee51a9d9716f tools/testing/selftests/seccomp/test_harness.h Kees Cook 2015-06-16 67 #include <unistd.h>
63e6b2a42342c32 tools/testing/selftests/kselftest_harness.h Kees Cook 2022-03-24 68 #include <setjmp.h>
c99ee51a9d9716f 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
next reply other threads:[~2024-05-13 18:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-13 18:26 kernel test robot [this message]
2024-05-14 1:42 ` [linux-next:master 11868/12793] ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined Liu, Yujie
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=202405140209.ORIxFuOF-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.