lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CY8PR11MB7134BF7A46D71E50D25FA7A989F72@CY8PR11MB7134.namprd11.prod.outlook.com>
Date: Wed, 5 Feb 2025 03:18:30 +0000
From: "Zhuo, Qiuxu" <qiuxu.zhuo@...el.com>
To: "Nguyen, Anthony L" <anthony.l.nguyen@...el.com>, "Kitszel, Przemyslaw"
	<przemyslaw.kitszel@...el.com>, "andrew+netdev@...n.ch"
	<andrew+netdev@...n.ch>, "davem@...emloft.net" <davem@...emloft.net>,
	"edumazet@...gle.com" <edumazet@...gle.com>, "kuba@...nel.org"
	<kuba@...nel.org>, "pabeni@...hat.com" <pabeni@...hat.com>, "Knitter, Konrad"
	<konrad.knitter@...el.com>
CC: "intel-wired-lan@...ts.osuosl.org" <intel-wired-lan@...ts.osuosl.org>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3:
 error: initializer element is not constant"

Hi,

I got theĀ build error messages as below:
My GCC is: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0.


  CC [M]  drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.o
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
   ice_update_nvm_solution, {ice_port_number_label}},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:82:3: note: (near initialization for 'ice_health_status_lookup[19].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:82:29: error: initializer element is not constant
   ice_update_nvm_solution, {ice_port_number_label}},
                             ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:82:29: note: (near initialization for 'ice_health_status_lookup[19].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:85:3: error: initializer element is not constant
   ice_update_nvm_solution, {ice_port_number_label}},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:85:3: note: (near initialization for 'ice_health_status_lookup[20].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:85:29: error: initializer element is not constant
   ice_update_nvm_solution, {ice_port_number_label}},
                             ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:85:29: note: (near initialization for 'ice_health_status_lookup[20].data_label[0]')
drivers/net/ethernet/intel/ice/devlink/health.c:87:3: error: initializer element is not constant
   ice_update_nvm_solution, {"Extended Error"}},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:87:3: note: (near initialization for 'ice_health_status_lookup[21].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:91:3: error: initializer element is not constant
   ice_update_nvm_solution},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:91:3: note: (near initialization for 'ice_health_status_lookup[23].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:93:3: error: initializer element is not constant
   ice_update_nvm_solution},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:93:3: note: (near initialization for 'ice_health_status_lookup[24].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:97:3: error: initializer element is not constant
   ice_update_nvm_solution},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:97:3: note: (near initialization for 'ice_health_status_lookup[26].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:99:3: error: initializer element is not constant
   ice_update_nvm_solution, {"Expected PCI Device ID", "Expected Module ID"}},
   ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:99:3: note: (near initialization for 'ice_health_status_lookup[27].solution')
drivers/net/ethernet/intel/ice/devlink/health.c:103:4: error: initializer element is not constant
   {ice_port_number_label, "MIB ID"}},
    ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/devlink/health.c:103:4: note: (near initialization for 'ice_health_status_lookup[28].data_label[0]')
  LD [M]  drivers/tty/ipwireless/ipwireless.o
  CC [M]  drivers/staging/rtl8723bs/core/rtw_mlme.o


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ