* [Intel-wired-lan] [tnguy-next-queue:dev-queue 53/137] include/linux/net/intel/virtchnl.h:480:30: error: enumerator value for 'virtchnl_static_assert_virtchnl_irq_map_info' is not an integer constant
@ 2026-07-01 23:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-01 23:38 UTC (permalink / raw)
Cc: oe-kbuild-all, Intel Wired LAN, Tony Nguyen, Sridhar Samudrala,
Larysa Zaremba
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 62cd994a473c1a7b1f9880e51d3c8ef8ae3b7550
commit: 4efec52d707a97415f9106aa4ae888ddf2644a09 [53/137] virtchnl: move virtchnl and virtchnl2 headers to 'include/linux/net/intel'
config: arm-randconfig-r051-20260702 (https://download.01.org/0day-ci/archive/20260702/202607020746.dwYTCJet-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607020746.dwYTCJet-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/202607020746.dwYTCJet-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/intel/iavf/iavf.h:30,
from drivers/net/ethernet/intel/iavf/iavf_main.c:7:
>> include/linux/net/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/net/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/net/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/net/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/net/intel/virtchnl.h
62683ab51e487f drivers/net/ethernet/intel/i40evf/i40e_virtchnl.h Greg Rose 2013-12-21 479
5e7f59fa07f86f include/linux/avf/virtchnl.h Alexander Lobakin 2023-07-28 @480 VIRTCHNL_CHECK_STRUCT_LEN(2, virtchnl_irq_map_info);
5e7f59fa07f86f include/linux/avf/virtchnl.h Alexander Lobakin 2023-07-28 481 #define virtchnl_irq_map_info_LEGACY_SIZEOF 14
73556269aab30c 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-01 23:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 23:38 [Intel-wired-lan] [tnguy-next-queue:dev-queue 53/137] include/linux/net/intel/virtchnl.h:480:30: error: enumerator value for 'virtchnl_static_assert_virtchnl_irq_map_info' is not an integer constant kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox