* Re: [PATCH 2/3] lib/tests: Add randstruct KUnit test
[not found] <20250427013836.877214-2-kees@kernel.org>
@ 2025-04-27 3:47 ` kernel test robot
2025-04-27 3:47 ` kernel test robot
2025-04-27 6:04 ` kernel test robot
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-04-27 3:47 UTC (permalink / raw)
To: Kees Cook, Arnd Bergmann
Cc: oe-kbuild-all, Kees Cook, Bill Wendling, Andrew Morton,
Linux Memory Management List, Nathan Chancellor,
Nick Desaulniers, Justin Stitt, Petr Mladek, David Gow, Rae Moar,
Tamir Duberstein, Diego Vieira, Luis Chamberlain, llvm,
Dr. David Alan Gilbert, Mark Brown, WangYuli,
Mickaël Salaün, Günther Noack,
Gustavo A. R. Silva, Paul Moore, James Morris, Serge E. Hallyn,
linux-kernel, linux-hardening, linux-security-module
Hi Kees,
kernel test robot noticed the following build errors:
[auto build test ERROR on kees/for-next/hardening]
[also build test ERROR on linus/master v6.15-rc3 next-20250424]
[cannot apply to akpm-mm/mm-nonmm-unstable soc/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Kees-Cook/randstruct-gcc-plugin-Remove-bogus-void-member/20250427-093946
base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening
patch link: https://lore.kernel.org/r/20250427013836.877214-2-kees%40kernel.org
patch subject: [PATCH 2/3] lib/tests: Add randstruct KUnit test
config: s390-randconfig-002-20250427 (https://download.01.org/0day-ci/archive/20250427/202504271124.gDNKq7ZN-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250427/202504271124.gDNKq7ZN-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/oe-kbuild-all/202504271124.gDNKq7ZN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> lib/tests/randstruct_kunit.c:36:36: error: expected ',' before ')' token
_Static_assert(MEMBER_NAME_MAX == 8);
^
,
cc1: warning: unrecognized command line option '-Wno-unterminated-string-initialization'
vim +36 lib/tests/randstruct_kunit.c
19
20 #define DO_MANY_MEMBERS(macro, args...) \
21 macro(a, args) \
22 macro(b, args) \
23 macro(c, args) \
24 macro(d, args) \
25 macro(e, args) \
26 macro(f, args) \
27 macro(g, args) \
28 macro(h, args)
29
30 #define do_enum(x, ignored) MEMBER_NAME_ ## x,
31 enum randstruct_member_names {
32 DO_MANY_MEMBERS(do_enum)
33 MEMBER_NAME_MAX,
34 };
35 /* Make sure the macros are working: want 8 test members. */
> 36 _Static_assert(MEMBER_NAME_MAX == 8);
37
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] lib/tests: Add randstruct KUnit test
[not found] <20250427013836.877214-2-kees@kernel.org>
2025-04-27 3:47 ` [PATCH 2/3] lib/tests: Add randstruct KUnit test kernel test robot
@ 2025-04-27 3:47 ` kernel test robot
2025-04-30 18:56 ` Kees Cook
2025-04-27 6:04 ` kernel test robot
2 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2025-04-27 3:47 UTC (permalink / raw)
To: Kees Cook, Arnd Bergmann
Cc: llvm, oe-kbuild-all, Kees Cook, Bill Wendling, Andrew Morton,
Linux Memory Management List, Nathan Chancellor,
Nick Desaulniers, Justin Stitt, Petr Mladek, David Gow, Rae Moar,
Tamir Duberstein, Diego Vieira, Luis Chamberlain,
Dr. David Alan Gilbert, Mark Brown, WangYuli,
Mickaël Salaün, Günther Noack,
Gustavo A. R. Silva, Paul Moore, James Morris, Serge E. Hallyn,
linux-kernel, linux-hardening, linux-security-module
Hi Kees,
kernel test robot noticed the following build warnings:
[auto build test WARNING on kees/for-next/hardening]
[also build test WARNING on linus/master v6.15-rc3 next-20250424]
[cannot apply to akpm-mm/mm-nonmm-unstable soc/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Kees-Cook/randstruct-gcc-plugin-Remove-bogus-void-member/20250427-093946
base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening
patch link: https://lore.kernel.org/r/20250427013836.877214-2-kees%40kernel.org
patch subject: [PATCH 2/3] lib/tests: Add randstruct KUnit test
config: riscv-randconfig-001-20250427 (https://download.01.org/0day-ci/archive/20250427/202504271150.Be642Srg-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250427/202504271150.Be642Srg-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/oe-kbuild-all/202504271150.Be642Srg-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/tests/randstruct_kunit.c:36:36: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
36 | _Static_assert(MEMBER_NAME_MAX == 8);
| ^
| , ""
1 warning generated.
vim +/_Static_assert +36 lib/tests/randstruct_kunit.c
19
20 #define DO_MANY_MEMBERS(macro, args...) \
21 macro(a, args) \
22 macro(b, args) \
23 macro(c, args) \
24 macro(d, args) \
25 macro(e, args) \
26 macro(f, args) \
27 macro(g, args) \
28 macro(h, args)
29
30 #define do_enum(x, ignored) MEMBER_NAME_ ## x,
31 enum randstruct_member_names {
32 DO_MANY_MEMBERS(do_enum)
33 MEMBER_NAME_MAX,
34 };
35 /* Make sure the macros are working: want 8 test members. */
> 36 _Static_assert(MEMBER_NAME_MAX == 8);
37
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] lib/tests: Add randstruct KUnit test
[not found] <20250427013836.877214-2-kees@kernel.org>
2025-04-27 3:47 ` [PATCH 2/3] lib/tests: Add randstruct KUnit test kernel test robot
2025-04-27 3:47 ` kernel test robot
@ 2025-04-27 6:04 ` kernel test robot
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-04-27 6:04 UTC (permalink / raw)
To: Kees Cook, Arnd Bergmann
Cc: llvm, oe-kbuild-all, Kees Cook, Bill Wendling, Andrew Morton,
Linux Memory Management List, Nathan Chancellor,
Nick Desaulniers, Justin Stitt, Petr Mladek, David Gow, Rae Moar,
Tamir Duberstein, Diego Vieira, Luis Chamberlain,
Dr. David Alan Gilbert, Mark Brown, WangYuli,
Mickaël Salaün, Günther Noack,
Gustavo A. R. Silva, Paul Moore, James Morris, Serge E. Hallyn,
linux-kernel, linux-hardening, linux-security-module
Hi Kees,
kernel test robot noticed the following build warnings:
[auto build test WARNING on kees/for-next/hardening]
[also build test WARNING on linus/master v6.15-rc3 next-20250424]
[cannot apply to akpm-mm/mm-nonmm-unstable soc/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Kees-Cook/randstruct-gcc-plugin-Remove-bogus-void-member/20250427-093946
base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening
patch link: https://lore.kernel.org/r/20250427013836.877214-2-kees%40kernel.org
patch subject: [PATCH 2/3] lib/tests: Add randstruct KUnit test
config: powerpc64-randconfig-002-20250427 (https://download.01.org/0day-ci/archive/20250427/202504271552.T3fbs0XC-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250427/202504271552.T3fbs0XC-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/oe-kbuild-all/202504271552.T3fbs0XC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/tests/randstruct_kunit.c:36:36: warning: '_Static_assert' with no message is a C2x extension [-Wc2x-extensions]
36 | _Static_assert(MEMBER_NAME_MAX == 8);
| ^
| , ""
1 warning generated.
vim +/_Static_assert +36 lib/tests/randstruct_kunit.c
19
20 #define DO_MANY_MEMBERS(macro, args...) \
21 macro(a, args) \
22 macro(b, args) \
23 macro(c, args) \
24 macro(d, args) \
25 macro(e, args) \
26 macro(f, args) \
27 macro(g, args) \
28 macro(h, args)
29
30 #define do_enum(x, ignored) MEMBER_NAME_ ## x,
31 enum randstruct_member_names {
32 DO_MANY_MEMBERS(do_enum)
33 MEMBER_NAME_MAX,
34 };
35 /* Make sure the macros are working: want 8 test members. */
> 36 _Static_assert(MEMBER_NAME_MAX == 8);
37
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/3] lib/tests: Add randstruct KUnit test
2025-04-27 3:47 ` kernel test robot
@ 2025-04-30 18:56 ` Kees Cook
0 siblings, 0 replies; 4+ messages in thread
From: Kees Cook @ 2025-04-30 18:56 UTC (permalink / raw)
To: kernel test robot
Cc: Arnd Bergmann, llvm, oe-kbuild-all, Bill Wendling, Andrew Morton,
Linux Memory Management List, Nathan Chancellor,
Nick Desaulniers, Justin Stitt, Petr Mladek, David Gow, Rae Moar,
Tamir Duberstein, Diego Vieira, Luis Chamberlain,
Dr. David Alan Gilbert, Mark Brown, WangYuli,
Mickaël Salaün, Günther Noack,
Gustavo A. R. Silva, Paul Moore, James Morris, Serge E. Hallyn,
linux-kernel, linux-hardening, linux-security-module
On Sun, Apr 27, 2025 at 11:47:19AM +0800, kernel test robot wrote:
> Hi Kees,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on kees/for-next/hardening]
> [also build test WARNING on linus/master v6.15-rc3 next-20250424]
> [cannot apply to akpm-mm/mm-nonmm-unstable soc/for-next]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Kees-Cook/randstruct-gcc-plugin-Remove-bogus-void-member/20250427-093946
> base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/hardening
> patch link: https://lore.kernel.org/r/20250427013836.877214-2-kees%40kernel.org
> patch subject: [PATCH 2/3] lib/tests: Add randstruct KUnit test
> config: riscv-randconfig-001-20250427 (https://download.01.org/0day-ci/archive/20250427/202504271150.Be642Srg-lkp@intel.com/config)
> compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250427/202504271150.Be642Srg-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/oe-kbuild-all/202504271150.Be642Srg-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> lib/tests/randstruct_kunit.c:36:36: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
> 36 | _Static_assert(MEMBER_NAME_MAX == 8);
> | ^
> | , ""
> 1 warning generated.
Thanks! I've fixed this locally.
--
Kees Cook
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-30 18:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20250427013836.877214-2-kees@kernel.org>
2025-04-27 3:47 ` [PATCH 2/3] lib/tests: Add randstruct KUnit test kernel test robot
2025-04-27 3:47 ` kernel test robot
2025-04-30 18:56 ` Kees Cook
2025-04-27 6:04 ` kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox