Skip to contentSkip to conversation

libbpf: Fix KERNEL_VERSION macro

PATCH Applied Hengqi Chen 3 participants 3 messages Apr 5, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libbpf: Fix KERNEL_VERSION macro

Add missing ')' for KERNEL_VERSION macro.

---
 tools/lib/bpf/bpf_helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/bpf_helpers.h +1 -1
index cc2e51c64a54..b904128626c2 100644
@@ -51,7 +51,7 @@
 #endif
 
 #ifndef KERNEL_VERSION
-#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))
+#define KERNEL_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
 #endif
 
 /*
Signature · 1 line
2.25.1
#1 lore raw
Quoted 5 lines · Hengqi Chen

Add missing ')' for KERNEL_VERSION macro.

---

Applied to bpf-next, thanks.

Quoted 19 lines
 tools/lib/bpf/bpf_helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/bpf/bpf_helpers.h +1 -2
index cc2e51c64a54..b904128626c2 100644
@@ -51,7 +51,7 @@
 #endif
 
 #ifndef KERNEL_VERSION
-#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c))
+#define KERNEL_VERSION(a, b, c) (((a) << 16) + ((b) << 8) + ((c) > 255 ? 255 : (c)))
 #endif
 
 /*
--

2.25.1

#2 lore raw
In reply to Hengqi Chen
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 6 lines · On Mon, 5 Apr 2021 12:01:19 +0800 you wrote:

Add missing ')' for KERNEL_VERSION macro.

---
 tools/lib/bpf/bpf_helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [bpf-next] libbpf: Fix KERNEL_VERSION macro

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

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