* [leon-rdma:rdma-next 17/75] drivers/infiniband/hw/bnxt_re/debugfs.h:34:33: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
@ 2025-02-04 7:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-04 7:13 UTC (permalink / raw)
To: Selvin Xavier; +Cc: llvm, oe-kbuild-all, Leon Romanovsky
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: 10565c5cadcb629f7780d24dd351878de9f46db5
commit: a3c71713d9548f1a9ee141c7cfb35550c3487443 [17/75] RDMA/bnxt_re: Congestion control settings using debugfs hook
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250204/202502041505.33zAsiMp-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250204/202502041505.33zAsiMp-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/202502041505.33zAsiMp-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/infiniband/hw/bnxt_re/main.c:39:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/s390/include/asm/elf.h:181:
In file included from arch/s390/include/asm/mmu_context.h:11:
In file included from arch/s390/include/asm/pgalloc.h:18:
In file included from include/linux/mm.h:2224:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/infiniband/hw/bnxt_re/main.c:70:
>> drivers/infiniband/hw/bnxt_re/debugfs.h:34:44: warning: variable length array used [-Wvla]
34 | struct bnxt_re_cc_param gen0_parms[BNXT_RE_CC_PARAM_GEN0];
| ^~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/bnxt_re/debugfs.h:24:31: note: expanded from macro 'BNXT_RE_CC_PARAM_GEN0'
24 | #define BNXT_RE_CC_PARAM_GEN0 __ffs(CMDQ_MODIFY_ROCE_CC_MODIFY_MASK_INACTIVITY_CP)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/infiniband/hw/bnxt_re/debugfs.h:34:33: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
34 | struct bnxt_re_cc_param gen0_parms[BNXT_RE_CC_PARAM_GEN0];
| ^
4 warnings and 1 error generated.
vim +34 drivers/infiniband/hw/bnxt_re/debugfs.h
32
33 struct bnxt_re_dbg_cc_config_params {
> 34 struct bnxt_re_cc_param gen0_parms[BNXT_RE_CC_PARAM_GEN0];
--
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:[~2025-02-04 7:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 7:13 [leon-rdma:rdma-next 17/75] drivers/infiniband/hw/bnxt_re/debugfs.h:34:33: error: fields must have a constant size: 'variable length array in structure' extension will never be supported 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