Module Name: src
Committed By: thorpej
Date: Wed Jan 27 01:00:05 UTC 2021
Modified Files:
src/sys/sys: device.h
Log Message:
Define a macro to terminate the common usage of device_compatible_entry
arrays, in order to placate the angry hordes objecting to use of a GCC
extension.
To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/sys/sys/device.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/device.h
diff -u src/sys/sys/device.h:1.162 src/sys/sys/device.h:1.163
--- src/sys/sys/device.h:1.162 Sun Jan 24 17:42:37 2021
+++ src/sys/sys/device.h Wed Jan 27 01:00:05 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: device.h,v 1.162 2021/01/24 17:42:37 thorpej Exp $ */
+/* $NetBSD: device.h,v 1.163 2021/01/27 01:00:05 thorpej Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -131,6 +131,8 @@ struct device_compatible_entry {
};
};
+#define DEVICE_COMPAT_EOL { .compat = NULL }
+
struct device_lock {
int dvl_nwait;
int dvl_nlock;