All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: stable@dpdk.org, Anatoly Burakov <anatoly.burakov@intel.com>,
	Sivaprasad Tummala <sivaprasad.tummala@amd.com>,
	Marcin Hajkowski <marcinx.hajkowski@intel.com>,
	Lukasz Krakowiak <lukaszx.krakowiak@intel.com>,
	Lukasz Gosiewski <lukaszx.gosiewski@intel.com>
Subject: Re: [PATCH] examples/vm_power_manager: fix const discarding
Date: Wed, 08 Apr 2026 20:18:33 +0200	[thread overview]
Message-ID: <3469901.tdWV9SEqCh@thomas> (raw)
In-Reply-To: <20260401093502.1420779-1-thomas@monjalon.net>

01/04/2026 11:35, Thomas Monjalon:
> When compiling with GCC 15.2.1, a const qualifier issue
> is seen with this warning:
> 
> In function 'get_resource_name_from_chn_path':
> examples/vm_power_manager/channel_monitor.c:139:16:
> error: assignment discards 'const' qualifier from pointer target type
>   139 |         substr = strstr(channel_path, CHANNEL_MGR_FIFO_PATTERN_NAME);
>       |                ^
> 
> The function get_resource_name_from_chn_path is used only once
> and call a single function (strstr),
> so it can be replaced with a direct call to strstr().
> 
> Fixes: 221e7026d521 ("examples/power: add FIFO per core for JSON interface")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

Applied to fix building with a recent GCC.



      reply	other threads:[~2026-04-08 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01  9:35 [PATCH] examples/vm_power_manager: fix const discarding Thomas Monjalon
2026-04-08 18:18 ` Thomas Monjalon [this message]

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=3469901.tdWV9SEqCh@thomas \
    --to=thomas@monjalon.net \
    --cc=anatoly.burakov@intel.com \
    --cc=dev@dpdk.org \
    --cc=lukaszx.gosiewski@intel.com \
    --cc=lukaszx.krakowiak@intel.com \
    --cc=marcinx.hajkowski@intel.com \
    --cc=sivaprasad.tummala@amd.com \
    --cc=stable@dpdk.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.