提交 27db40db 编写于 作者: H Hengqi Chen 提交者: Zheng Zengkai

libbpf: Fix KERNEL_VERSION macro

mainline inclusion
from mainline-5.13-rc1
commit 1e1032b0
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1e1032b0c4afaed7739a6681ff6b4cb120b82994

-------------------------------------------------

Add missing ')' for KERNEL_VERSION macro.
Signed-off-by: NHengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: NAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210405040119.802188-1-hengqi.chen@gmail.com
(cherry picked from commit 1e1032b0)
Signed-off-by: NWang Yufen <wangyufen@huawei.com>
上级 b9915144
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#endif #endif
#ifndef KERNEL_VERSION #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 #endif
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册