* [PATCH v2] libbpf: use local bpf_helpers.h include
@ 2024-04-02 15:10 Tobias Böhm
2024-04-02 16:26 ` Andrii Nakryiko
2024-04-02 16:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Tobias Böhm @ 2024-04-02 15:10 UTC (permalink / raw)
To: Andrii Nakryiko, Eduard Zingerman, bpf
Commit 20d59ee55172fdf6 ("libbpf: add bpf_core_cast() macro") added a
bpf_helpers include in bpf_core_read.h as a system include. Usually, the
includes are local, though, like in bpf_tracing.h. This commit adjusts
the include to be local as well.
Signed-off-by: Tobias Böhm <tobias@aibor.de>
---
Sorry for the very wrong first version.
Changes to v1:
- The patch was based on the libbpf repo instead of the kernel repo.
- The description referred to the commit of the wrong repo.
tools/lib/bpf/bpf_core_read.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/bpf/bpf_core_read.h b/tools/lib/bpf/bpf_core_read.h
index 1ce738d91..b5c7ce5c2 100644
--- a/tools/lib/bpf/bpf_core_read.h
+++ b/tools/lib/bpf/bpf_core_read.h
@@ -2,7 +2,7 @@
#ifndef __BPF_CORE_READ_H__
#define __BPF_CORE_READ_H__
-#include <bpf/bpf_helpers.h>
+#include "bpf_helpers.h"
/*
* enum bpf_field_info_kind is passed as a second argument into
base-commit: 026e680b0a08a62b1d948e5a8ca78700bfac0e6e
--
2.44.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] libbpf: use local bpf_helpers.h include
2024-04-02 15:10 [PATCH v2] libbpf: use local bpf_helpers.h include Tobias Böhm
@ 2024-04-02 16:26 ` Andrii Nakryiko
2024-04-02 16:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2024-04-02 16:26 UTC (permalink / raw)
To: Tobias Böhm; +Cc: Andrii Nakryiko, Eduard Zingerman, bpf
On Tue, Apr 2, 2024 at 8:11 AM Tobias Böhm <tobias@aibor.de> wrote:
>
> Commit 20d59ee55172fdf6 ("libbpf: add bpf_core_cast() macro") added a
> bpf_helpers include in bpf_core_read.h as a system include. Usually, the
> includes are local, though, like in bpf_tracing.h. This commit adjusts
> the include to be local as well.
>
> Signed-off-by: Tobias Böhm <tobias@aibor.de>
> ---
>
> Sorry for the very wrong first version.
>
> Changes to v1:
> - The patch was based on the libbpf repo instead of the kernel repo.
> - The description referred to the commit of the wrong repo.
>
> tools/lib/bpf/bpf_core_read.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/lib/bpf/bpf_core_read.h b/tools/lib/bpf/bpf_core_read.h
> index 1ce738d91..b5c7ce5c2 100644
> --- a/tools/lib/bpf/bpf_core_read.h
> +++ b/tools/lib/bpf/bpf_core_read.h
> @@ -2,7 +2,7 @@
> #ifndef __BPF_CORE_READ_H__
> #define __BPF_CORE_READ_H__
>
> -#include <bpf/bpf_helpers.h>
> +#include "bpf_helpers.h"
>
Makes sense, I'll apply the patch. But I wanted to check if this is
causing real issues in practice. Mostly to understand if I need 1.4.1
release with this fix?
> /*
> * enum bpf_field_info_kind is passed as a second argument into
>
> base-commit: 026e680b0a08a62b1d948e5a8ca78700bfac0e6e
> --
> 2.44.0
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v2] libbpf: use local bpf_helpers.h include
2024-04-02 15:10 [PATCH v2] libbpf: use local bpf_helpers.h include Tobias Böhm
2024-04-02 16:26 ` Andrii Nakryiko
@ 2024-04-02 16:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-04-02 16:30 UTC (permalink / raw)
To: =?utf-8?b?VG9iaWFzIELDtmhtIDx0b2JpYXNAYWlib3IuZGU+?=; +Cc: andrii, eddyz87, bpf
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Tue, 2 Apr 2024 17:10:52 +0200 you wrote:
> Commit 20d59ee55172fdf6 ("libbpf: add bpf_core_cast() macro") added a
> bpf_helpers include in bpf_core_read.h as a system include. Usually, the
> includes are local, though, like in bpf_tracing.h. This commit adjusts
> the include to be local as well.
>
> Signed-off-by: Tobias Böhm <tobias@aibor.de>
>
> [...]
Here is the summary with links:
- [v2] libbpf: use local bpf_helpers.h include
https://git.kernel.org/bpf/bpf-next/c/15ea39ad7e83
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] 3+ messages in thread
end of thread, other threads:[~2024-04-02 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 15:10 [PATCH v2] libbpf: use local bpf_helpers.h include Tobias Böhm
2024-04-02 16:26 ` Andrii Nakryiko
2024-04-02 16: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