llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/vdso-has-macros 7/7] include/vdso/gettime.h:11:33: warning: '_Static_assert' with no message is a C23 extension
@ 2025-07-14 14:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-14 14:19 UTC (permalink / raw)
  To: Thomas Weißschuh; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/vdso-has-macros
head:   51063ab687181b4aec3cfdb1def38e50381918b8
commit: 51063ab687181b4aec3cfdb1def38e50381918b8 [7/7] deleteme
config: i386-buildonly-randconfig-002-20250714 (https://download.01.org/0day-ci/archive/20250714/202507142249.Hm3kmAqi-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250714/202507142249.Hm3kmAqi-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/202507142249.Hm3kmAqi-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:4:
   In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:14:
>> include/vdso/gettime.h:11:33: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
      11 | _Static_assert(sizeof(long) == 4);
         |                                 ^
         |                                 , ""
   In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:4:
   In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:16:
   In file included from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5:
   In file included from include/vdso/datapage.h:197:
   In file included from arch/x86/include/asm/vdso/gettimeofday.h:20:
   In file included from include/clocksource/hyperv_timer.h:16:
   In file included from include/linux/clocksource.h:19:
   In file included from include/linux/of.h:18:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:12:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:21:
   In file included from include/linux/xarray.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
   include/linux/page-flags-layout.h:36:44: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
      36 | _Static_assert(!IS_ENABLED(BUILD_VDSO32_64));
         |                                            ^
         |                                            , ""
   In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:4:
   In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:16:
   In file included from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5:
   In file included from include/vdso/datapage.h:197:
   In file included from arch/x86/include/asm/vdso/gettimeofday.h:20:
   In file included from include/clocksource/hyperv_timer.h:16:
   In file included from include/linux/clocksource.h:19:
   In file included from include/linux/of.h:18:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:12:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:21:
   In file included from include/linux/xarray.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:22:
   In file included from include/linux/mm_types.h:12:
   include/linux/maple_tree.h:27:44: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
      27 | _Static_assert(!IS_ENABLED(BUILD_VDSO32_64));
         |                                            ^
         |                                            , ""
   In file included from arch/x86/entry/vdso/vdso32/vclock_gettime.c:4:
   In file included from arch/x86/entry/vdso/vdso32/../vclock_gettime.c:16:
   In file included from arch/x86/entry/vdso/vdso32/../../../../../lib/vdso/gettimeofday.c:5:
   In file included from include/vdso/datapage.h:197:
   In file included from arch/x86/include/asm/vdso/gettimeofday.h:20:
   In file included from include/clocksource/hyperv_timer.h:16:
   In file included from include/linux/clocksource.h:19:
   In file included from include/linux/of.h:18:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:12:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:21:
   In file included from include/linux/xarray.h:16:
   In file included from include/linux/gfp.h:7:
   include/linux/mmzone.h:1122:44: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
    1122 | _Static_assert(!IS_ENABLED(BUILD_VDSO32_64));
         |                                            ^
         |                                            , ""
   4 warnings generated.


vim +/_Static_assert +11 include/vdso/gettime.h

     9	
    10	#if !defined(CONFIG_64BIT) || defined(BUILD_VDSO32_64)
  > 11	_Static_assert(sizeof(long) == 4);
    12	struct old_timespec32;
    13	int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res);
    14	int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
    15	#else
    16	_Static_assert(sizeof(long) == 8);
    17	int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
    18	int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
    19	#endif
    20	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-14 14:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-14 14:19 [thomas-weissschuh:b4/vdso-has-macros 7/7] include/vdso/gettime.h:11:33: warning: '_Static_assert' with no message is a C23 extension 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;
as well as URLs for NNTP newsgroup(s).