Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev No externs in .c files! Include ioconf.h for struct...
details: https://anonhg.NetBSD.org/src/rev/52d40e6fd451
branches: trunk
changeset: 357123:52d40e6fd451
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Oct 28 03:34:26 2017 +0000
description:
No externs in .c files! Include ioconf.h for struct cfdriver xyz_cd.
diffstat:
sys/dev/audio.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 14120c0e7cc4 -r 52d40e6fd451 sys/dev/audio.c
--- a/sys/dev/audio.c Sat Oct 28 01:12:04 2017 +0000
+++ b/sys/dev/audio.c Sat Oct 28 03:34:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.417 2017/10/27 01:34:32 nat Exp $ */
+/* $NetBSD: audio.c,v 1.418 2017/10/28 03:34:26 riastradh Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.417 2017/10/27 01:34:32 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.418 2017/10/28 03:34:26 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -195,6 +195,8 @@
#include <uvm/uvm.h>
+#include "ioconf.h"
+
/* #define AUDIO_DEBUG 1 */
#ifdef AUDIO_DEBUG
#define DPRINTF(x) if (audiodebug) printf x
@@ -466,8 +468,6 @@
audiomatch, audioattach, audiodetach, audioactivate, audiorescan,
audiochilddet, DVF_DETACH_SHUTDOWN);
-extern struct cfdriver audio_cd;
-
static int
audiomatch(device_t parent, cfdata_t match, void *aux)
{
@@ -6137,7 +6137,6 @@
#ifdef _MODULE
-extern struct cfdriver audio_cd;
devmajor_t audio_bmajor = -1, audio_cmajor = -1;
#include "ioconf.c"
Home |
Main Index |
Thread Index |
Old Index