Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Fix compile error when MIIVERBOSE is set. Report...
details: https://anonhg.NetBSD.org/src/rev/2bb2360f49e7
branches: trunk
changeset: 449824:2bb2360f49e7
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Mar 25 09:46:24 2019 +0000
description:
Fix compile error when MIIVERBOSE is set. Reported by Kurt Schreiner.
diffstat:
sys/dev/mii/devlist2h.awk | 7 ++++++-
sys/dev/mii/mii_verbose.c | 10 ++--------
2 files changed, 8 insertions(+), 9 deletions(-)
diffs (52 lines):
diff -r 9d7fddcc2ec3 -r 2bb2360f49e7 sys/dev/mii/devlist2h.awk
--- a/sys/dev/mii/devlist2h.awk Mon Mar 25 09:32:25 2019 +0000
+++ b/sys/dev/mii/devlist2h.awk Mon Mar 25 09:46:24 2019 +0000
@@ -1,5 +1,5 @@
#! /usr/bin/awk -f
-# $NetBSD: devlist2h.awk,v 1.8 2017/06/03 14:46:29 christos Exp $
+# $NetBSD: devlist2h.awk,v 1.9 2019/03/25 09:46:24 msaitoh Exp $
#
# Copyright (c) 1998 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -142,6 +142,11 @@
models[nmodels, 4]) > hfile
if (!firstdone) {
+ printf("struct mii_knowndev {\n") > dfile
+ printf(" int oui;\n") > dfile
+ printf(" int model;\n") > dfile
+ printf(" const char *descr;\n") > dfile
+ printf("};\n") > dfile
printf("struct mii_knowndev mii_knowndevs[] = {\n") > dfile
firstdone = 1
}
diff -r 9d7fddcc2ec3 -r 2bb2360f49e7 sys/dev/mii/mii_verbose.c
--- a/sys/dev/mii/mii_verbose.c Mon Mar 25 09:32:25 2019 +0000
+++ b/sys/dev/mii/mii_verbose.c Mon Mar 25 09:46:24 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mii_verbose.c,v 1.5 2019/03/25 07:34:13 msaitoh Exp $ */
+/* $NetBSD: mii_verbose.c,v 1.6 2019/03/25 09:46:24 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -55,19 +55,13 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii_verbose.c,v 1.5 2019/03/25 07:34:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_verbose.c,v 1.6 2019/03/25 09:46:24 msaitoh Exp $");
#include <sys/module.h>
#include <dev/mii/miidevs.h>
#include <dev/mii/miidevs_data.h>
#include <dev/mii/mii_verbose.h>
-struct mii_knowndev {
- int oui;
- int model;
- const char *descr;
-};
-
const char * mii_get_descr_real(int, int);
MODULE(MODULE_CLASS_MISC, miiverbose, NULL);
Home |
Main Index |
Thread Index |
Old Index