From: kernel test robot <lkp@intel.com>
To: Phil Sutter <phil@nwl.cc>, Pablo Neira Ayuso <pablo@netfilter.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
netfilter-devel@vger.kernel.org,
"Gustavo A . R . Silva" <gustavo@embeddedor.com>
Subject: Re: [nf-next PATCH v2] netfilter: include: uapi: Use C99 flexible array member
Date: Mon, 20 Jul 2020 11:41:12 +0800 [thread overview]
Message-ID: <202007201135.2OjkGuQD%lkp@intel.com> (raw)
In-Reply-To: <20200719100220.4666-1-phil@nwl.cc>
[-- Attachment #1: Type: text/plain, Size: 4937 bytes --]
Hi Phil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on nf-next/master]
url: https://github.com/0day-ci/linux/commits/Phil-Sutter/netfilter-include-uapi-Use-C99-flexible-array-member/20200719-180355
base: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3504acc33e8b9ddd7de71d75cdc329a14dbf58d9)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from <built-in>:1:
>> ./usr/include/linux/netfilter_bridge/ebtables.h:90:13: error: expected ';' at end of declaration list
char data[] __aligned(__alignof__(struct ebt_replace));
^
;
./usr/include/linux/netfilter_bridge/ebtables.h:132:22: error: expected ';' at end of declaration list
unsigned char data[] __aligned(__alignof__(struct ebt_replace));
^
;
./usr/include/linux/netfilter_bridge/ebtables.h:145:22: error: expected ';' at end of declaration list
unsigned char data[] __aligned(__alignof__(struct ebt_replace));
^
;
./usr/include/linux/netfilter_bridge/ebtables.h:158:22: error: expected ';' at end of declaration list
unsigned char data[] __aligned(__alignof__(struct ebt_replace));
^
;
>> ./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;
^
./usr/include/linux/netfilter_bridge/ebtables.h:191:23: error: expected ';' at end of declaration list
unsigned char elems[] __aligned(__alignof__(struct ebt_replace));
^
;
1 warning and 5 errors generated.
--
In file included from <built-in>:1:
In file included from ./usr/include/linux/netfilter_ipv6/ip6_tables.h:24:
>> ./usr/include/linux/netfilter/x_tables.h:66:25: warning: field 'target' with variable sized type 'struct xt_entry_target' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct xt_entry_target target;
^
./usr/include/linux/netfilter/x_tables.h:71:25: warning: field 'target' with variable sized type 'struct xt_entry_target' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct xt_entry_target target;
^
In file included from <built-in>:1:
>> ./usr/include/linux/netfilter_ipv6/ip6_tables.h:131:20: warning: field 'entry' with variable sized type 'struct ip6t_entry' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct ip6t_entry entry;
^
./usr/include/linux/netfilter_ipv6/ip6_tables.h:136:20: warning: field 'entry' with variable sized type 'struct ip6t_entry' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct ip6t_entry entry;
^
4 warnings generated.
--
In file included from <built-in>:1:
In file included from ./usr/include/linux/netfilter_arp/arpt_mangle.h:4:
In file included from ./usr/include/linux/netfilter_arp/arp_tables.h:18:
>> ./usr/include/linux/netfilter/x_tables.h:66:25: warning: field 'target' with variable sized type 'struct xt_entry_target' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct xt_entry_target target;
^
./usr/include/linux/netfilter/x_tables.h:71:25: warning: field 'target' with variable sized type 'struct xt_entry_target' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
struct xt_entry_target target;
^
2 warnings generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 75346 bytes --]
prev parent reply other threads:[~2020-07-20 4:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-19 10:02 [nf-next PATCH v2] netfilter: include: uapi: Use C99 flexible array member Phil Sutter
2020-07-19 15:34 ` Gustavo A. R. Silva
2020-07-20 11:26 ` Phil Sutter
2020-07-20 3:22 ` kernel test robot
2020-07-20 3:41 ` kernel test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202007201135.2OjkGuQD%lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=gustavo@embeddedor.com \
--cc=kbuild-all@lists.01.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=phil@nwl.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).