[gustavoars:testing/fsfa3 22/22] ./usr/include/linux/netfilter_bridge/ebtables.h:163:26: warning: field 'target' with variable sized type 'struct ebt_entry_target' not at the end of a struct or class is a GNU extension
From: kernel test robot
Date: Wed Apr 05 2023 - 04:21:15 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/fsfa3
head: 91ba9bf02e0d11bbe0b6fe49f40fb90818f2a06d
commit: 91ba9bf02e0d11bbe0b6fe49f40fb90818f2a06d [22/22] uapi: netfilter: ebtables: Replace zero-length array with flexible-array member
config: x86_64-randconfig-a001-20230403 (https://download.01.org/0day-ci/archive/20230405/202304051623.Cvewnzo2-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/commit/?id=91ba9bf02e0d11bbe0b6fe49f40fb90818f2a06d
git remote add gustavoars https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
git fetch --no-tags gustavoars testing/fsfa3
git checkout 91ba9bf02e0d11bbe0b6fe49f40fb90818f2a06d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304051623.Cvewnzo2-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from <built-in>:1:
>> ./usr/include/linux/netfilter_bridge/ebtables.h:163:26: warning: field 'target' with variable sized type 'struct ebt_entry_target' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct ebt_entry_target target;
^
1 warning generated.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests