[gustavoars:testing/wfamnae-next20240726-cbc 14/14] usr/include/linux/ethtool.h:1645:15: error: expected declaration specifiers or '...' before '__builtin_offsetof'
From: kernel test robot
Date: Sun Jul 28 2024 - 10:11:29 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20240726-cbc
head: bd10b39e2b713a2f9fe8715278e9d4bee9253e24
commit: bd10b39e2b713a2f9fe8715278e9d4bee9253e24 [14/14] ethtool: Avoid -Wflex-array-member-not-at-end warning
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240728/202407282208.YeiZqcQL-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240728/202407282208.YeiZqcQL-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407282208.YeiZqcQL-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from usr/include/linux/ethtool.h:22,
from ./usr/include/linux/mii.h:13,
from <command-line>:
>> usr/include/linux/ethtool.h:1645:15: error: expected declaration specifiers or '...' before '__builtin_offsetof'
1645 | static_assert(offsetof(struct ethtool_dump, data) == sizeof(struct ethtool_dump_hdr),
| ^~~~~~~~
usr/include/linux/ethtool.h:1646:15: error: expected declaration specifiers or '...' before string constant
1646 | "struct member outside of __struct_group()");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from ./usr/include/linux/ethtool.h:22,
from <command-line>:
>> ./usr/include/linux/ethtool.h:1645:15: error: expected declaration specifiers or '...' before '__builtin_offsetof'
1645 | static_assert(offsetof(struct ethtool_dump, data) == sizeof(struct ethtool_dump_hdr),
| ^~~~~~~~
./usr/include/linux/ethtool.h:1646:15: error: expected declaration specifiers or '...' before string constant
1646 | "struct member outside of __struct_group()");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki