libbpf: Fix KERNEL_VERSION macro
authorHengqi Chen <hengqi.chen@gmail.com>
Mon, 5 Apr 2021 04:01:19 +0000 (12:01 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 5 Apr 2021 14:14:13 +0000 (07:14 -0700)
Add missing ')' for KERNEL_VERSION macro.

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210405040119.802188-1-hengqi.chen@gmail.com
tools/lib/bpf/bpf_helpers.h

index cc2e51c..b904128 100644 (file)
@@ -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
 
 /*