[gustavoars:testing/wfamnae-next20240710-cbc 12/13] usr/include/linux/ethtool.h:1644:51: error: expected ')'

From: kernel test robot
Date: Tue Jul 16 2024 - 18:00:30 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20240710-cbc
head: e3597892cb471e5732700d17c2cca098f3148759
commit: d2fc97b383bbbdff9312f7993dbc9fd9d44bf379 [12/13] ethtool: Avoid -Wflex-array-member-not-at-end warning
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240717/202407170517.BxkUPcmH-lkp@xxxxxxxxx/config)
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/20240717/202407170517.BxkUPcmH-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/202407170517.BxkUPcmH-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

In file included from <built-in>:1:
In file included from ./usr/include/linux/mdio.h:15:
In file included from usr/include/linux/mii.h:13:
>> usr/include/linux/ethtool.h:1644:45: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
| int
usr/include/linux/ethtool.h:1644:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
| int
>> usr/include/linux/ethtool.h:1644:51: error: expected ')'
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
usr/include/linux/ethtool.h:1644:14: note: to match this '('
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
usr/include/linux/ethtool.h:1644:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
| int
3 warnings and 1 error generated.
--
In file included from <built-in>:1:
>> ./usr/include/linux/ethtool.h:1644:45: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
| int
./usr/include/linux/ethtool.h:1644:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
| int
>> ./usr/include/linux/ethtool.h:1644:51: error: expected ')'
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
./usr/include/linux/ethtool.h:1644:14: note: to match this '('
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
./usr/include/linux/ethtool.h:1644:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
1644 | static_assert(offsetof(struct ethtool_dump, data) ==
| ^
| int
3 warnings and 1 error generated.

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