From d4beac571aae8a8965a7017e568bfb607bacf3d4 Mon Sep 17 00:00:00 2001 From: Hengqi Chen Date: Mon, 5 Apr 2021 12:01:19 +0800 Subject: [PATCH] libbpf: Fix KERNEL_VERSION macro Add missing ')' for KERNEL_VERSION macro. Signed-off-by: Hengqi Chen Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20210405040119.802188-1-hengqi.chen@gmail.com --- src/bpf_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bpf_helpers.h b/src/bpf_helpers.h index cc2e51c..b904128 100644 --- a/src/bpf_helpers.h +++ b/src/bpf_helpers.h @@ -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 /*