Skip to content

Commit

Permalink
libbpf: Fix KERNEL_VERSION macro
Browse files Browse the repository at this point in the history
Add missing ')' for KERNEL_VERSION macro.

Signed-off-by: Hengqi Chen <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
chenhengqi authored and anakryiko committed Apr 5, 2021
1 parent f73ea1e commit 1e1032b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/bpf/bpf_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit 1e1032b

Please sign in to comment.