From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars:totally-untested/remaining-fam0 1/2] drivers/net/can/usb/etas_es58x/es58x_core.h:225:5: error: flexible array member 'raw_cmd' in a union is not allowed
Date: Fri, 12 Aug 2022 22:02:30 +0800 [thread overview]
Message-ID: <202208122128.dEarB7X1-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git totally-untested/remaining-fam0
head: b0684d2f714f4ae515c283697c48d14e3ccef21b
commit: 9b8e2a44bb97e6316a5d268f9812543e2f6f1d44 [1/2] totally-untested: remaining zero-length arrays in unions in next-20220811
config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220812/202208122128.dEarB7X1-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 5f1c7e2cc5a3c07cbc2412e851a7283c1841f520)
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=9b8e2a44bb97e6316a5d268f9812543e2f6f1d44
git remote add gustavoars https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git
git fetch --no-tags gustavoars totally-untested/remaining-fam0
git checkout 9b8e2a44bb97e6316a5d268f9812543e2f6f1d44
# 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 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/can/usb/etas_es58x/es58x_core.c:20:
>> drivers/net/can/usb/etas_es58x/es58x_core.h:225:5: error: flexible array member 'raw_cmd' in a union is not allowed
u8 raw_cmd[];
^
1 error generated.
vim +/raw_cmd +225 drivers/net/can/usb/etas_es58x/es58x_core.h
216
217 union es58x_urb_cmd {
218 struct es581_4_urb_cmd es581_4_urb_cmd;
219 struct es58x_fd_urb_cmd es58x_fd_urb_cmd;
220 struct { /* Common header parts of all variants */
221 __le16 sof;
222 u8 cmd_type;
223 u8 cmd_id;
224 } __packed;
> 225 u8 raw_cmd[];
226 };
227
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-08-12 14:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202208122128.dEarB7X1-lkp@intel.com \
--to=lkp@intel.com \
--cc=gustavo@embeddedor.com \
--cc=gustavoars@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.