From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
Tony Nguyen <anthony.l.nguyen@intel.com>,
Sridhar Samudrala <sridhar.samudrala@intel.com>,
Larysa Zaremba <larysa.zaremba@intel.com>
Subject: [Intel-wired-lan] [tnguy-next-queue:dev-queue 4/145] include/linux/intel/virtchnl.h:480:30: error: enumerator value for 'virtchnl_static_assert_virtchnl_irq_map_info' is not an integer constant
Date: Sun, 03 May 2026 01:24:17 +0800 [thread overview]
Message-ID: <202605030146.fEzMWDym-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 03bfd1fd4cea5b5be0d50475802a29a8de476969
commit: 02f11e95790d60c0713cceb05399ca93da4e0093 [4/145] virtchnl: create 'include/linux/intel' and move necessary header files
config: arm-randconfig-004-20260502 (https://download.01.org/0day-ci/archive/20260503/202605030146.fEzMWDym-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605030146.fEzMWDym-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605030146.fEzMWDym-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/intel/iavf/iavf.h:40,
from drivers/net/ethernet/intel/iavf/iavf_adv_rss.c:6:
>> include/linux/intel/virtchnl.h:174:43: warning: division by zero [-Wdiv-by-zero]
174 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
include/linux/intel/virtchnl.h:480:1: note: in expansion of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
480 | VIRTCHNL_CHECK_STRUCT_LEN(2, virtchnl_irq_map_info);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/intel/virtchnl.h:480:30: error: enumerator value for 'virtchnl_static_assert_virtchnl_irq_map_info' is not an integer constant
480 | VIRTCHNL_CHECK_STRUCT_LEN(2, virtchnl_irq_map_info);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/intel/virtchnl.h:174:60: note: in definition of macro 'VIRTCHNL_CHECK_STRUCT_LEN'
174 | { virtchnl_static_assert_##X = (n)/((sizeof(struct X) == (n)) ? 1 : 0) }
| ^
vim +/virtchnl_static_assert_virtchnl_irq_map_info +480 include/linux/intel/virtchnl.h
62683ab51e487fb drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose 2013-12-21 479
5e7f59fa07f86f5 include/linux/avf/virtchnl.h Alexander Lobakin 2023-07-28 @480 VIRTCHNL_CHECK_STRUCT_LEN(2, virtchnl_irq_map_info);
5e7f59fa07f86f5 include/linux/avf/virtchnl.h Alexander Lobakin 2023-07-28 481 #define virtchnl_irq_map_info_LEGACY_SIZEOF 14
73556269aab30c3 include/linux/avf/virtchnl.h Sridhar Samudrala 2017-05-11 482
:::::: The code at line 480 was first introduced by commit
:::::: 5e7f59fa07f86f554c301c7a383bba54d5ef9819 virtchnl: fix fake 1-elem arrays in structures allocated as `nents + 1`
:::::: TO: Alexander Lobakin <aleksander.lobakin@intel.com>
:::::: CC: Tony Nguyen <anthony.l.nguyen@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-02 17:24 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=202605030146.fEzMWDym-lkp@intel.com \
--to=lkp@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=larysa.zaremba@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sridhar.samudrala@intel.com \
/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