From: patchwork-bot+netdevbpf@kernel.org
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH iproute2] bpf: fix warning from basename()
Date: Mon, 29 Jan 2024 18:30:26 +0000 [thread overview]
Message-ID: <170655302658.19054.2092788760353633535.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20240127220032.5347-1-stephen@networkplumber.org>
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:
On Sat, 27 Jan 2024 14:00:32 -0800 you wrote:
> The function basename() expects a mutable character string,
> which now causes a warning:
>
> bpf_legacy.c: In function ‘bpf_load_common’:
> bpf_legacy.c:975:38: warning: passing argument 1 of ‘__xpg_basename’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
> 975 | basename(cfg->object), cfg->mode == EBPF_PINNED ?
> | ~~~^~~~~~~~
> In file included from bpf_legacy.c:21:
> /usr/include/libgen.h:34:36: note: expected ‘char *’ but argument is of type ‘const char *’
> 34 | extern char *__xpg_basename (char *__path) __THROW;
>
> [...]
Here is the summary with links:
- [iproute2] bpf: fix warning from basename()
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=69e3b2fadcd3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2024-01-29 18:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-27 22:00 [PATCH iproute2] bpf: fix warning from basename() Stephen Hemminger
2024-01-29 18:30 ` patchwork-bot+netdevbpf [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=170655302658.19054.2092788760353633535.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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 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).