* [PATCH] libbpf: fix the incorrect reference to the memlock_rlim variable in the comment.
@ 2025-10-27 3:20 Jianyun Gao
2025-10-28 17:30 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Jianyun Gao @ 2025-10-27 3:20 UTC (permalink / raw)
To: linux-kernel
Cc: Jianyun Gao, Andrii Nakryiko, Eduard Zingerman,
Alexei Starovoitov, Daniel Borkmann, Martin KaFai Lau, Song Liu,
Yonghong Song, John Fastabend, KP Singh, Stanislav Fomichev,
Hao Luo, Jiri Olsa, open list:BPF [LIBRARY] (libbpf)
The variable "memlock_rlim_max" referenced in the comment does not exist.
I think that the author probably meant the variable "memlock_rlim". So,
correct it.
Signed-off-by: Jianyun Gao <jianyungao89@gmail.com>
---
tools/lib/bpf/bpf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/bpf/bpf.c b/tools/lib/bpf/bpf.c
index 339b19797237..b66f5fbfbbb2 100644
--- a/tools/lib/bpf/bpf.c
+++ b/tools/lib/bpf/bpf.c
@@ -154,7 +154,7 @@ int bump_rlimit_memlock(void)
memlock_bumped = true;
- /* zero memlock_rlim_max disables auto-bumping RLIMIT_MEMLOCK */
+ /* zero memlock_rlim disables auto-bumping RLIMIT_MEMLOCK */
if (memlock_rlim == 0)
return 0;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] libbpf: fix the incorrect reference to the memlock_rlim variable in the comment.
2025-10-27 3:20 [PATCH] libbpf: fix the incorrect reference to the memlock_rlim variable in the comment Jianyun Gao
@ 2025-10-28 17:30 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-10-28 17:30 UTC (permalink / raw)
To: Jianyun Gao
Cc: linux-kernel, andrii, eddyz87, ast, daniel, martin.lau, song,
yonghong.song, john.fastabend, kpsingh, sdf, haoluo, jolsa, bpf
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Mon, 27 Oct 2025 11:20:08 +0800 you wrote:
> The variable "memlock_rlim_max" referenced in the comment does not exist.
> I think that the author probably meant the variable "memlock_rlim". So,
> correct it.
>
> Signed-off-by: Jianyun Gao <jianyungao89@gmail.com>
> ---
> tools/lib/bpf/bpf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- libbpf: fix the incorrect reference to the memlock_rlim variable in the comment.
https://git.kernel.org/bpf/bpf-next/c/54c134f379ee
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-28 17:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 3:20 [PATCH] libbpf: fix the incorrect reference to the memlock_rlim variable in the comment Jianyun Gao
2025-10-28 17:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox