* Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant"
@ 2025-02-05 3:18 Zhuo, Qiuxu
2025-02-05 9:41 ` Michal Swiatkowski
2025-02-05 10:20 ` Przemek Kitszel
0 siblings, 2 replies; 3+ messages in thread
From: Zhuo, Qiuxu @ 2025-02-05 3:18 UTC (permalink / raw)
To: Nguyen, Anthony L, Kitszel, Przemyslaw, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, Knitter, Konrad
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant"
2025-02-05 3:18 Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant" Zhuo, Qiuxu
@ 2025-02-05 9:41 ` Michal Swiatkowski
2025-02-05 10:20 ` Przemek Kitszel
1 sibling, 0 replies; 3+ messages in thread
From: Michal Swiatkowski @ 2025-02-05 9:41 UTC (permalink / raw)
To: Zhuo, Qiuxu
Cc: Nguyen, Anthony L, Kitszel, Przemyslaw, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, Knitter, Konrad,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
On Wed, Feb 05, 2025 at 03:18:30AM +0000, Zhuo, Qiuxu wrote:
> Hi,
>
> I got the build error messages as below:
> My GCC is: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0.
>
Try compiling with gcc 8.1 or newer.
Thanks,
Michal
>
> 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}},
> ^~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant"
2025-02-05 3:18 Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant" Zhuo, Qiuxu
2025-02-05 9:41 ` Michal Swiatkowski
@ 2025-02-05 10:20 ` Przemek Kitszel
1 sibling, 0 replies; 3+ messages in thread
From: Przemek Kitszel @ 2025-02-05 10:20 UTC (permalink / raw)
To: Zhuo, Qiuxu, Nguyen, Anthony L, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, Knitter, Konrad
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
On 2/5/25 04:18, Zhuo, Qiuxu wrote:
> Hi,
>
> I got the build error messages as below:
> My GCC is: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0.
Thank you for the report, FTR this is the same GCC version as used by
SLES 15, even the current ones :(
I will send a fix.
I would love to bump minimal gcc version to 8.5 (RHEL 8 family) some day
>
>
> 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}},
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-05 10:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 3:18 Build error on "drivers/net/ethernet/intel/ice/devlink/health.c:35:3: error: initializer element is not constant" Zhuo, Qiuxu
2025-02-05 9:41 ` Michal Swiatkowski
2025-02-05 10:20 ` Przemek Kitszel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).