Thread (2 messages) flat view 2 messages, 2 authors, 2019-08-20
STALE2572d

[PATCH] bpfilter/verifier: add include guard to tnum.h

From: Masahiro Yamada <hidden>
Date: 2019-08-19 16:11:28
Also in: bpf, lkml
Subsystem: bpf [core], the rest · Maintainers: Alexei Starovoitov, Daniel Borkmann, Linus Torvalds

Add a header include guard just in case.

Signed-off-by: Masahiro Yamada <redacted>
---

 include/linux/tnum.h | 6 ++++++
 1 file changed, 6 insertions(+)
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 */
-- 
2.17.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help