[Midnightbsd-cvs] src [12389] trunk/sys/sys/kobj.h: Sync with FreeBSD 11-stable
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Feb 16 17:45:27 EST 2020
Revision: 12389
http://svnweb.midnightbsd.org/src/?rev=12389
Author: laffer1
Date: 2020-02-16 17:45:26 -0500 (Sun, 16 Feb 2020)
Log Message:
-----------
Sync with FreeBSD 11-stable
Modified Paths:
--------------
trunk/sys/sys/kobj.h
Modified: trunk/sys/sys/kobj.h
===================================================================
--- trunk/sys/sys/kobj.h 2020-02-16 22:44:54 UTC (rev 12388)
+++ trunk/sys/sys/kobj.h 2020-02-16 22:45:26 UTC (rev 12389)
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $FreeBSD: stable/10/sys/sys/kobj.h 318275 2017-05-14 14:21:11Z marius $
+ * $FreeBSD: stable/11/sys/sys/kobj.h 331722 2018-03-29 02:50:57Z eadler $
*/
#ifndef _SYS_KOBJ_H_
@@ -147,13 +147,13 @@
* DEFINE_CLASS_2(foo, foo_class, foo_methods, sizeof(foo_softc),
* bar, baz);
*/
-#define DEFINE_CLASS_2(name, methods, size, \
+#define DEFINE_CLASS_2(name, classvar, methods, size, \
base1, base2) \
\
static kobj_class_t name ## _baseclasses[] = \
{ &base1, \
&base2, NULL }; \
-struct kobj_class name ## _class = { \
+struct kobj_class classvar = { \
#name, methods, size, name ## _baseclasses \
}
@@ -163,7 +163,7 @@
* DEFINE_CLASS_3(foo, foo_class, foo_methods, sizeof(foo_softc),
* bar, baz, foobar);
*/
-#define DEFINE_CLASS_3(name, methods, size, \
+#define DEFINE_CLASS_3(name, classvar, methods, size, \
base1, base2, base3) \
\
static kobj_class_t name ## _baseclasses[] = \
@@ -170,7 +170,7 @@
{ &base1, \
&base2, \
&base3, NULL }; \
-struct kobj_class name ## _class = { \
+struct kobj_class classvar = { \
#name, methods, size, name ## _baseclasses \
}
More information about the Midnightbsd-cvs
mailing list