git: d68ccfb4ea2b - stable/13 - vnet: add CURVNET_ASSERT_SET for !VIMAGE

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 15 Mar 2024 17:59:08 UTC
The branch stable/13 has been updated by glebius:

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

commit d68ccfb4ea2bf5245df1267377c35d9727c38264
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-02-19 21:00:00 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-03-15 17:58:54 +0000

    vnet: add CURVNET_ASSERT_SET for !VIMAGE
    
    Reported by:    ler
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 430e0e409ce94246bb252cbdddef866fc69dea95)
---
 sys/net/vnet.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/net/vnet.h b/sys/net/vnet.h
index fb26077e694c..f15669bca61a 100644
--- a/sys/net/vnet.h
+++ b/sys/net/vnet.h
@@ -399,6 +399,7 @@ do {									\
 #define	CURVNET_SET(arg)
 #define	CURVNET_SET_QUIET(arg)
 #define	CURVNET_RESTORE()
+#define	CURVNET_ASSERT_SET()						\
 
 #define	VNET_LIST_RLOCK()
 #define	VNET_LIST_RLOCK_NOSLEEP()