Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Define a macro to terminate the common usage of devi...



details:   https://anonhg.NetBSD.org/src/rev/9f1b2da5e221
branches:  trunk
changeset: 950381:9f1b2da5e221
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jan 27 01:00:05 2021 +0000

description:
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.

diffstat:

 sys/sys/device.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 1fd838a95b16 -r 9f1b2da5e221 sys/sys/device.h
--- a/sys/sys/device.h  Wed Jan 27 00:02:38 2021 +0000
+++ b/sys/sys/device.h  Wed Jan 27 01:00:05 2021 +0000
@@ -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 @@
        };
 };
 
+#define        DEVICE_COMPAT_EOL       { .compat = NULL }
+
 struct device_lock {
        int             dvl_nwait;
        int             dvl_nlock;



Home | Main Index | Thread Index | Old Index