git: 76985729102c - stable/13 - debugnet: Include some required headers

Mark Johnston markj at FreeBSD.org
Tue Sep 21 13:48:29 UTC 2021


The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=76985729102cf137b81ca57b1b0dbe61ee41e66d

commit 76985729102cf137b81ca57b1b0dbe61ee41e66d
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-09-14 14:53:15 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-09-21 13:37:42 +0000

    debugnet: Include some required headers
    
    Don't depend on pollution from net/vnet.h.
    
    PR:             258496
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit b1746faad6d690e43ac78ba3a9bca96c767ea729)
---
 sys/net/debugnet.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/net/debugnet.c b/sys/net/debugnet.c
index 8652597c55db..7a2c98ace65d 100644
--- a/sys/net/debugnet.c
+++ b/sys/net/debugnet.c
@@ -39,6 +39,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/endian.h>
 #include <sys/errno.h>
 #include <sys/eventhandler.h>
+#include <sys/kernel.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
 #include <sys/socket.h>
 #include <sys/sysctl.h>
 
@@ -53,6 +56,7 @@ __FBSDID("$FreeBSD$");
 #include <net/if_dl.h>
 #include <net/if_types.h>
 #include <net/if_var.h>
+#include <net/vnet.h>
 #include <net/route.h>
 #include <net/route/nhop.h>
 


More information about the dev-commits-src-all mailing list