drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant
From: kernel test robot
Date: Tue Mar 18 2025 - 16:30:21 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 81e4f8d68c66da301bb881862735bd74c6241a19
commit: 85d6164ec56deef2e5692cf8b132115f9317cdf6 ice: add fw and port health reporters
date: 9 weeks ago
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20250319/202503190404.sA5CPXty-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250319/202503190404.sA5CPXty-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503190404.sA5CPXty-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant
ice_common_port_solutions, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:35:3: note: (near initialization for 'ice_health_status_lookup[0].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:35:31: error: initializer element is not constant
ice_common_port_solutions, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:35:31: note: (near initialization for 'ice_health_status_lookup[0].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:37:46: error: initializer element is not constant
"Change or replace the module or cable.", {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:37:46: note: (near initialization for 'ice_health_status_lookup[1].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:39:3: error: initializer element is not constant
ice_common_port_solutions, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:39:3: note: (near initialization for 'ice_health_status_lookup[2].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:39:31: error: initializer element is not constant
ice_common_port_solutions, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:39:31: note: (near initialization for 'ice_health_status_lookup[2].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:43:4: error: initializer element is not constant
{ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:43:4: note: (near initialization for 'ice_health_status_lookup[3].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:46:4: error: initializer element is not constant
{ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:46:4: note: (near initialization for 'ice_health_status_lookup[4].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:49:4: error: initializer element is not constant
{ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:49:4: note: (near initialization for 'ice_health_status_lookup[5].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:52:4: error: initializer element is not constant
{ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:52:4: note: (near initialization for 'ice_health_status_lookup[6].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:54:3: error: initializer element is not constant
ice_common_port_solutions, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:54:3: note: (near initialization for 'ice_health_status_lookup[7].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:54:31: error: initializer element is not constant
ice_common_port_solutions, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:54:31: note: (near initialization for 'ice_health_status_lookup[7].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:56:10: error: initializer element is not constant
NULL, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:56:10: note: (near initialization for 'ice_health_status_lookup[8].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:58:3: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:58:3: note: (near initialization for 'ice_health_status_lookup[9].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:58:29: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:58:29: note: (near initialization for 'ice_health_status_lookup[9].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:63:4: error: initializer element is not constant
{ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:63:4: note: (near initialization for 'ice_health_status_lookup[11].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:67:4: error: initializer element is not constant
{ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:67:4: note: (near initialization for 'ice_health_status_lookup[12].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:70:50: error: initializer element is not constant
"Change the module to align to port option.", {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:70:50: note: (near initialization for 'ice_health_status_lookup[13].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:72:3: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:72:3: note: (near initialization for 'ice_health_status_lookup[14].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:72:29: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:72:29: note: (near initialization for 'ice_health_status_lookup[14].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:74:3: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:74:3: note: (near initialization for 'ice_health_status_lookup[15].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:74:29: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:74:29: note: (near initialization for 'ice_health_status_lookup[15].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:78:3: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:78:3: note: (near initialization for 'ice_health_status_lookup[17].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:78:29: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:78:29: note: (near initialization for 'ice_health_status_lookup[17].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:80:3: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:80:3: note: (near initialization for 'ice_health_status_lookup[18].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:80:29: error: initializer element is not constant
ice_update_nvm_solution, {ice_port_number_label}},
^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:80:29: note: (near initialization for 'ice_health_status_lookup[18].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:82:3: error: initializer element is not constant
vim +35 drivers/net/ethernet/intel/ice/devlink/health.c
32
33 static const struct ice_health_status ice_health_status_lookup[] = {
34 {ICE_AQC_HEALTH_STATUS_ERR_UNKNOWN_MOD_STRICT, "An unsupported module was detected.",
> 35 ice_common_port_solutions, {ice_port_number_label}},
36 {ICE_AQC_HEALTH_STATUS_ERR_MOD_TYPE, "Module type is not supported.",
37 "Change or replace the module or cable.", {ice_port_number_label}},
38 {ICE_AQC_HEALTH_STATUS_ERR_MOD_QUAL, "Module is not qualified.",
39 ice_common_port_solutions, {ice_port_number_label}},
40 {ICE_AQC_HEALTH_STATUS_ERR_MOD_COMM,
41 "Device cannot communicate with the module.",
42 "Check your cable connection. Change or replace the module or cable. Manually set speed and duplex.",
43 {ice_port_number_label}},
44 {ICE_AQC_HEALTH_STATUS_ERR_MOD_CONFLICT, "Unresolved module conflict.",
45 "Manually set speed/duplex or change the port option. If the problem persists, use a cable/module that is found in the supported modules and cables list for this device.",
46 {ice_port_number_label}},
47 {ICE_AQC_HEALTH_STATUS_ERR_MOD_NOT_PRESENT, "Module is not present.",
48 "Check that the module is inserted correctly. If the problem persists, use a cable/module that is found in the supported modules and cables list for this device.",
49 {ice_port_number_label}},
50 {ICE_AQC_HEALTH_STATUS_INFO_MOD_UNDERUTILIZED, "Underutilized module.",
51 "Change or replace the module or cable. Change the port option.",
52 {ice_port_number_label}},
53 {ICE_AQC_HEALTH_STATUS_ERR_UNKNOWN_MOD_LENIENT, "An unsupported module was detected.",
54 ice_common_port_solutions, {ice_port_number_label}},
55 {ICE_AQC_HEALTH_STATUS_ERR_INVALID_LINK_CFG, "Invalid link configuration.",
56 NULL, {ice_port_number_label}},
57 {ICE_AQC_HEALTH_STATUS_ERR_PORT_ACCESS, "Port hardware access error.",
58 ice_update_nvm_solution, {ice_port_number_label}},
59 {ICE_AQC_HEALTH_STATUS_ERR_PORT_UNREACHABLE, "A port is unreachable.",
60 "Change the port option. Update to the latest NVM image."},
61 {ICE_AQC_HEALTH_STATUS_INFO_PORT_SPEED_MOD_LIMITED, "Port speed is limited due to module.",
62 "Change the module or configure the port option to match the current module speed. Change the port option.",
63 {ice_port_number_label}},
64 {ICE_AQC_HEALTH_STATUS_ERR_PARALLEL_FAULT,
65 "All configured link modes were attempted but failed to establish link. The device will restart the process to establish link.",
66 "Check link partner connection and configuration.",
67 {ice_port_number_label}},
68 {ICE_AQC_HEALTH_STATUS_INFO_PORT_SPEED_PHY_LIMITED,
69 "Port speed is limited by PHY capabilities.",
70 "Change the module to align to port option.", {ice_port_number_label}},
71 {ICE_AQC_HEALTH_STATUS_ERR_NETLIST_TOPO, "LOM topology netlist is corrupted.",
72 ice_update_nvm_solution, {ice_port_number_label}},
73 {ICE_AQC_HEALTH_STATUS_ERR_NETLIST, "Unrecoverable netlist error.",
74 ice_update_nvm_solution, {ice_port_number_label}},
75 {ICE_AQC_HEALTH_STATUS_ERR_TOPO_CONFLICT, "Port topology conflict.",
76 "Change the port option. Update to the latest NVM image."},
77 {ICE_AQC_HEALTH_STATUS_ERR_LINK_HW_ACCESS, "Unrecoverable hardware access error.",
78 ice_update_nvm_solution, {ice_port_number_label}},
79 {ICE_AQC_HEALTH_STATUS_ERR_LINK_RUNTIME, "Unrecoverable runtime error.",
80 ice_update_nvm_solution, {ice_port_number_label}},
81 {ICE_AQC_HEALTH_STATUS_ERR_DNL_INIT, "Link management engine failed to initialize.",
82 ice_update_nvm_solution, {ice_port_number_label}},
83 {ICE_AQC_HEALTH_STATUS_ERR_PHY_FW_LOAD,
84 "Failed to load the firmware image in the external PHY.",
85 ice_update_nvm_solution, {ice_port_number_label}},
86 {ICE_AQC_HEALTH_STATUS_INFO_RECOVERY, "The device is in firmware recovery mode.",
87 ice_update_nvm_solution, {"Extended Error"}},
88 {ICE_AQC_HEALTH_STATUS_ERR_FLASH_ACCESS, "The flash chip cannot be accessed.",
89 "If issue persists, call customer support.", {"Access Type"}},
90 {ICE_AQC_HEALTH_STATUS_ERR_NVM_AUTH, "NVM authentication failed.",
91 ice_update_nvm_solution},
92 {ICE_AQC_HEALTH_STATUS_ERR_OROM_AUTH, "Option ROM authentication failed.",
93 ice_update_nvm_solution},
94 {ICE_AQC_HEALTH_STATUS_ERR_DDP_AUTH, "DDP package authentication failed.",
95 "Update to latest base driver and DDP package."},
96 {ICE_AQC_HEALTH_STATUS_ERR_NVM_COMPAT, "NVM image is incompatible.",
97 ice_update_nvm_solution},
98 {ICE_AQC_HEALTH_STATUS_ERR_OROM_COMPAT, "Option ROM is incompatible.",
99 ice_update_nvm_solution, {"Expected PCI Device ID", "Expected Module ID"}},
100 {ICE_AQC_HEALTH_STATUS_ERR_DCB_MIB,
101 "Supplied MIB file is invalid. DCB reverted to default configuration.",
102 "Disable FW-LLDP and check DCBx system configuration.",
103 {ice_port_number_label, "MIB ID"}},
104 };
105
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki