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/4b2e662d6238
branches:  trunk
changeset: 980199:4b2e662d6238
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 85748ba1f39f -r 4b2e662d6238 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