All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 11868/12793] ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined
@ 2024-05-13 18:26 kernel test robot
  2024-05-14  1:42 ` Liu, Yujie
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-05-13 18:26 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [linux-next:master 11868/12793] ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined
  2024-05-13 18:26 [linux-next:master 11868/12793] ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined kernel test robot
@ 2024-05-14  1:42 ` Liu, Yujie
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yujie @ 2024-05-14  1:42 UTC (permalink / raw)
  To: lkp, oe-kbuild@lists.linux.dev

not_report

duplicate to https://lore.kernel.org/r/202405130312.R5mxIDyQ-lkp@intel.com/

-----Original Message-----
From: lkp <lkp@intel.com> 
Sent: Tuesday, May 14, 2024 02:26
To: oe-kbuild@lists.linux.dev
Cc: lkp <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

:::::: 
:::::: 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-14  1:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 18:26 [linux-next:master 11868/12793] ./../kselftest_harness.h:54:15: error: static assertion failed: kselftest harness requires _GNU_SOURCE to be defined kernel test robot
2024-05-14  1:42 ` Liu, Yujie

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.