Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii include locators.h from .c only, avoids unnecess...



details:   https://anonhg.NetBSD.org/src/rev/3cd6913ee1fc
branches:  trunk
changeset: 569724:3cd6913ee1fc
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Sep 01 20:59:30 2004 +0000

description:
include locators.h from .c only, avoids unnecessary dependencies

diffstat:

 sys/dev/mii/mii.c    |  6 ++++--
 sys/dev/mii/miivar.h |  3 +--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (44 lines):

diff -r 78ef7627f377 -r 3cd6913ee1fc sys/dev/mii/mii.c
--- a/sys/dev/mii/mii.c Wed Sep 01 20:57:58 2004 +0000
+++ b/sys/dev/mii/mii.c Wed Sep 01 20:59:30 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii.c,v 1.35 2004/08/23 06:18:39 thorpej Exp $ */
+/*     $NetBSD: mii.c,v 1.36 2004/09/01 20:59:30 drochner Exp $        */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii.c,v 1.35 2004/08/23 06:18:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii.c,v 1.36 2004/09/01 20:59:30 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -56,6 +56,8 @@
 #include <dev/mii/mii.h>
 #include <dev/mii/miivar.h>
 
+#include "locators.h"
+
 static int     mii_print(void *, const char *);
 static int     mii_submatch(struct device *, struct cfdata *, void *);
 
diff -r 78ef7627f377 -r 3cd6913ee1fc sys/dev/mii/miivar.h
--- a/sys/dev/mii/miivar.h      Wed Sep 01 20:57:58 2004 +0000
+++ b/sys/dev/mii/miivar.h      Wed Sep 01 20:59:30 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: miivar.h,v 1.40 2004/08/23 06:05:30 thorpej Exp $      */
+/*     $NetBSD: miivar.h,v 1.41 2004/09/01 20:59:30 drochner Exp $     */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -207,7 +207,6 @@
 #define        MII_NMEDIA              10
 
 #ifdef _KERNEL
-#include "locators.h"
 
 #define        PHY_READ(p, r) \
        (*(p)->mii_pdata->mii_readreg)((p)->mii_dev.dv_parent, \



Home | Main Index | Thread Index | Old Index