git: e30b58846003 - main - bpf: Add a comment on the large `#ifdef _KERNEL` block
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Sep 2024 10:10:21 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=e30b58846003a54df028686363b5abed59897779
commit e30b58846003a54df028686363b5abed59897779
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-09-20 10:06:22 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-09-20 10:06:22 +0000
bpf: Add a comment on the large `#ifdef _KERNEL` block
This improves readability a little.
MFC after: 3 days
---
sys/net/bpf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index e44a7cd2359d..2c227bb2f09d 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -448,7 +448,7 @@ bpf_peers_present(struct bpf_if *bpf)
bpf_mtap_if((_ifp), (_m))
#define BPF_MTAP2(_ifp,_data,_dlen,_m) \
bpf_mtap2_if((_ifp), (_data), (_dlen), (_m))
-#endif
+#endif /* _KERNEL */
/*
* Number of scratch memory words (for BPF_LD|BPF_MEM and BPF_ST).