aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/tnum.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-20 01:10:35 +0900
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-20 17:05:05 +0200
commit69ecfdaa534943efd95ee12b53fbb0f344e42e7e (patch)
tree42b3df703628d38b3c2d484600088a7a5f1c17af /include/linux/tnum.h
parentbpf: add BTF ids in procfs for file descriptors to BTF objects (diff)
downloadwireguard-linux-69ecfdaa534943efd95ee12b53fbb0f344e42e7e.tar.xz
wireguard-linux-69ecfdaa534943efd95ee12b53fbb0f344e42e7e.zip
bpf: add include guard to tnum.h
Add a header include guard just in case. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/linux/tnum.h')
-rw-r--r--include/linux/tnum.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/tnum.h b/include/linux/tnum.h
index c7dc2b5902c0..c17af77f3fae 100644
--- a/include/linux/tnum.h
+++ b/include/linux/tnum.h
@@ -5,6 +5,10 @@
* propagate the unknown bits such that the tnum result represents all the
* possible results for possible values of the operands.
*/
+
+#ifndef _LINUX_TNUM_H
+#define _LINUX_TNUM_H
+
#include <linux/types.h>
struct tnum {
@@ -81,3 +85,5 @@ bool tnum_in(struct tnum a, struct tnum b);
int tnum_strn(char *str, size_t size, struct tnum a);
/* Format a tnum as tristate binary expansion */
int tnum_sbin(char *str, size_t size, struct tnum a);
+
+#endif /* _LINUX_TNUM_H */