Skip to contentSkip to conversation

bpf: Remove unnecessary <argp.h> include from preload/iterators

PATCH Applied Leah Neukirchen 3 participants 3 messages Dec 16, 2020 – Dec 29, 2020 BPF

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: Remove unnecessary <argp.h> include from preload/iterators

This program does not use argp (which is a glibcism). Instead include <errno.h> directly, which was pulled in by <argp.h>.

---
 kernel/bpf/preload/iterators/iterators.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bpf/preload/iterators/iterators.c +1 -1
index b7ff8793917..5d872a70547 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* Copyright (c) 2020 Facebook */
-#include <argp.h>
+#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
Signature · 1 line
2.29.2
#2 lore raw
In reply to Leah Neukirchen
This patch was applied to bpf/bpf-next.git (refs/heads/master):

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

Quoted 7 lines · On Wed, 16 Dec 2020 11:03:06 +0100 you wrote:

This program does not use argp (which is a glibcism). Instead include <errno.h> directly, which was pulled in by <argp.h>.

---
 kernel/bpf/preload/iterators/iterators.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- bpf: Remove unnecessary <argp.h> include from preload/iterators

    https://git.kernel.org/bpf/bpf-next/c/1bcf3a740aa5

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html