Module Name: src
Committed By: riastradh
Date: Sat Oct 28 03:34:27 UTC 2017
Modified Files:
src/sys/dev: audio.c
Log Message:
No externs in .c files! Include ioconf.h for struct cfdriver xyz_cd.
To generate a diff of this commit:
cvs rdiff -u -r1.417 -r1.418 src/sys/dev/audio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/audio.c
diff -u src/sys/dev/audio.c:1.417 src/sys/dev/audio.c:1.418
--- src/sys/dev/audio.c:1.417 Fri Oct 27 01:34:32 2017
+++ src/sys/dev/audio.c Sat Oct 28 03:34:26 2017
@@ -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 <[email protected]>
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.
#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 @@ CFATTACH_DECL3_NEW(audio, sizeof(struct
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 @@ shrink_mixer_states(struct audio_softc *
#ifdef _MODULE
-extern struct cfdriver audio_cd;
devmajor_t audio_bmajor = -1, audio_cmajor = -1;
#include "ioconf.c"