[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202502061056.162506F7@keescook>
Date: Thu, 6 Feb 2025 10:57:20 -0800
From: Kees Cook <kees@...nel.org>
To: Simon Horman <horms@...nel.org>
Cc: Przemek Kitszel <przemyslaw.kitszel@...el.com>,
intel-wired-lan@...ts.osuosl.org,
Tony Nguyen <anthony.l.nguyen@...el.com>, netdev@...r.kernel.org,
Konrad Knitter <konrad.knitter@...el.com>,
Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>,
Qiuxu Zhuo <qiuxu.zhuo@...el.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Nick Desaulniers <nick.desaulniers@...il.com>,
Jiri Slaby <jirislaby@...nel.org>
Subject: Re: [PATCH iwl-net] ice: health.c: fix compilation on gcc 7.5
On Wed, Feb 05, 2025 at 08:45:46PM +0000, Simon Horman wrote:
> I ran into a similar problem not so long ago and I'm wondering if
> the following, based on a suggestion by Jiri Slaby, resolves your
> problem.
>
> diff --git a/drivers/net/ethernet/intel/ice/devlink/health.c b/drivers/net/ethernet/intel/ice/devlink/health.c
> index ea40f7941259..19c3d37aa768 100644
> --- a/drivers/net/ethernet/intel/ice/devlink/health.c
> +++ b/drivers/net/ethernet/intel/ice/devlink/health.c
> @@ -25,10 +25,10 @@ struct ice_health_status {
> * The below lookup requires to be sorted by code.
> */
>
> -static const char *const ice_common_port_solutions =
> +static const char ice_common_port_solutions[] =
> "Check your cable connection. Change or replace the module or cable. Manually set speed and duplex.";
> -static const char *const ice_port_number_label = "Port Number";
> -static const char *const ice_update_nvm_solution = "Update to the latest NVM image.";
> +static const char ice_port_number_label[] = "Port Number";
> +static const char ice_update_nvm_solution[] = "Update to the latest NVM image.";
>
> static const struct ice_health_status ice_health_status_lookup[] = {
> {ICE_AQC_HEALTH_STATUS_ERR_UNKNOWN_MOD_STRICT, "An unsupported module was detected.",
>
I'd agree that would be the preferred fix. :)
--
Kees Cook
Powered by blists - more mailing lists