All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <kees@kernel.org>
To: Simon Horman <horms@kernel.org>
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	intel-wired-lan@lists.osuosl.org,
	Tony Nguyen <anthony.l.nguyen@intel.com>,
	netdev@vger.kernel.org, Konrad Knitter <konrad.knitter@intel.com>,
	Michal Swiatkowski <michal.swiatkowski@linux.intel.com>,
	Qiuxu Zhuo <qiuxu.zhuo@intel.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Nick Desaulniers <nick.desaulniers@gmail.com>,
	Jiri Slaby <jirislaby@kernel.org>
Subject: Re: [Intel-wired-lan] [PATCH iwl-net] ice: health.c: fix compilation on gcc 7.5
Date: Thu, 6 Feb 2025 10:57:20 -0800	[thread overview]
Message-ID: <202502061056.162506F7@keescook> (raw)
In-Reply-To: <20250205204546.GM554665@kernel.org>

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

WARNING: multiple messages have this Message-ID (diff)
From: Kees Cook <kees@kernel.org>
To: Simon Horman <horms@kernel.org>
Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	intel-wired-lan@lists.osuosl.org,
	Tony Nguyen <anthony.l.nguyen@intel.com>,
	netdev@vger.kernel.org, Konrad Knitter <konrad.knitter@intel.com>,
	Michal Swiatkowski <michal.swiatkowski@linux.intel.com>,
	Qiuxu Zhuo <qiuxu.zhuo@intel.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Nick Desaulniers <nick.desaulniers@gmail.com>,
	Jiri Slaby <jirislaby@kernel.org>
Subject: Re: [PATCH iwl-net] ice: health.c: fix compilation on gcc 7.5
Date: Thu, 6 Feb 2025 10:57:20 -0800	[thread overview]
Message-ID: <202502061056.162506F7@keescook> (raw)
In-Reply-To: <20250205204546.GM554665@kernel.org>

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

  parent reply	other threads:[~2025-02-07 16:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-05 10:42 [Intel-wired-lan] [PATCH iwl-net] ice: health.c: fix compilation on gcc 7.5 Przemek Kitszel
2025-02-05 10:42 ` Przemek Kitszel
2025-02-05 11:19 ` [Intel-wired-lan] " Michal Swiatkowski
2025-02-05 11:19   ` Michal Swiatkowski
2025-02-05 11:39 ` [Intel-wired-lan] " Zhuo, Qiuxu
2025-02-05 11:39   ` Zhuo, Qiuxu
2025-02-05 20:45 ` [Intel-wired-lan] " Simon Horman
2025-02-05 20:45   ` Simon Horman
2025-02-05 22:56   ` [Intel-wired-lan] " David Laight
2025-02-05 22:56     ` David Laight
2025-02-06  7:53     ` [Intel-wired-lan] " Jiri Slaby
2025-02-06  7:53       ` Jiri Slaby
2025-02-06  7:45   ` [Intel-wired-lan] " Jiri Slaby
2025-02-06  7:45     ` Jiri Slaby
2025-02-06 18:57   ` Kees Cook [this message]
2025-02-06 18:57     ` Kees Cook
2025-03-14  7:03 ` [Intel-wired-lan] " Mekala, SunithaX D
2025-03-14  7:03   ` Mekala, SunithaX D

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202502061056.162506F7@keescook \
    --to=kees@kernel.org \
    --cc=anthony.l.nguyen@intel.com \
    --cc=horms@kernel.org \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jirislaby@kernel.org \
    --cc=konrad.knitter@intel.com \
    --cc=michal.swiatkowski@linux.intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=nick.desaulniers@gmail.com \
    --cc=przemyslaw.kitszel@intel.com \
    --cc=qiuxu.zhuo@intel.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.