netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bpfilter/verifier: add include guard to tnum.h
@ 2019-08-19 16:10 Masahiro Yamada
  2019-08-20 15:10 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-08-19 16:10 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Martin KaFai Lau, Song Liu,
	Yonghong Song, netdev, bpf
  Cc: Masahiro Yamada, linux-kernel

Add a header include guard just in case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bpfilter/verifier: add include guard to tnum.h
  2019-08-19 16:10 [PATCH] bpfilter/verifier: add include guard to tnum.h Masahiro Yamada
@ 2019-08-20 15:10 ` Daniel Borkmann
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2019-08-20 15:10 UTC (permalink / raw)
  To: Masahiro Yamada, Alexei Starovoitov, Martin KaFai Lau, Song Liu,
	Yonghong Song, netdev, bpf
  Cc: linux-kernel

On 8/19/19 6:10 PM, Masahiro Yamada wrote:
> Add a header include guard just in case.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-20 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19 16:10 [PATCH] bpfilter/verifier: add include guard to tnum.h Masahiro Yamada
2019-08-20 15:10 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).