Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/acpitools/aml It's not necessary to #include both <...



details:   https://anonhg.NetBSD.org/src/rev/ec16333a73e6
branches:  trunk
changeset: 765537:ec16333a73e6
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Mon May 30 01:15:30 2011 +0000

description:
It's not necessary to #include both <machine/bus.h> and <sys/bus.h>,
because <sys/bus.h> will do: <sys/bus.h> #includes <machine/bus.h>.

diffstat:

 usr.sbin/acpitools/aml/aml_common.c |  5 ++---
 usr.sbin/acpitools/aml/aml_parse.c  |  5 ++---
 usr.sbin/acpitools/aml/aml_region.c |  5 ++---
 3 files changed, 6 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r b8282931eeca -r ec16333a73e6 usr.sbin/acpitools/aml/aml_common.c
--- a/usr.sbin/acpitools/aml/aml_common.c       Mon May 30 01:10:57 2011 +0000
+++ b/usr.sbin/acpitools/aml/aml_common.c       Mon May 30 01:15:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aml_common.c,v 1.2 2009/01/18 09:46:59 lukem Exp $     */
+/*     $NetBSD: aml_common.c,v 1.3 2011/05/30 01:15:30 dyoung Exp $    */
 
 /*-
  * Copyright (c) 1999 Takanori Watanabe
@@ -30,7 +30,7 @@
  *     $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_common.c,v 1.6 2000/11/09 06:24:45 iwasaki Exp $
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: aml_common.c,v 1.2 2009/01/18 09:46:59 lukem Exp $");
+__RCSID("$NetBSD: aml_common.c,v 1.3 2011/05/30 01:15:30 dyoung Exp $");
 
 #include <sys/param.h>
 
@@ -47,7 +47,6 @@
 #include <sys/sysctl.h>
 #include <sys/systm.h>
 #include <sys/bus.h>
-#include <machine/bus.h>
 #include <dev/acpi/acpireg.h>
 #include <dev/acpi/acpivar.h>
 #ifndef ACPI_NO_OSDFUNC_INLINE
diff -r b8282931eeca -r ec16333a73e6 usr.sbin/acpitools/aml/aml_parse.c
--- a/usr.sbin/acpitools/aml/aml_parse.c        Mon May 30 01:10:57 2011 +0000
+++ b/usr.sbin/acpitools/aml/aml_parse.c        Mon May 30 01:15:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aml_parse.c,v 1.1 2007/01/14 04:36:13 christos Exp $   */
+/*     $NetBSD: aml_parse.c,v 1.2 2011/05/30 01:15:30 dyoung Exp $     */
 
 /*-
  * Copyright (c) 1999 Doug Rabson
@@ -30,7 +30,7 @@
  *     $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_parse.c,v 1.7 2001/10/23 14:54:15 takawata Exp $
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: aml_parse.c,v 1.1 2007/01/14 04:36:13 christos Exp $");
+__RCSID("$NetBSD: aml_parse.c,v 1.2 2011/05/30 01:15:30 dyoung Exp $");
 
 #include <sys/param.h>
 
@@ -61,7 +61,6 @@
 #else /* _KERNEL */
 #include <sys/systm.h>
 #include <sys/bus.h>
-#include <machine/bus.h>
 #include <dev/acpi/acpireg.h>
 #include <dev/acpi/acpivar.h>
 #ifndef ACPI_NO_OSDFUNC_INLINE
diff -r b8282931eeca -r ec16333a73e6 usr.sbin/acpitools/aml/aml_region.c
--- a/usr.sbin/acpitools/aml/aml_region.c       Mon May 30 01:10:57 2011 +0000
+++ b/usr.sbin/acpitools/aml/aml_region.c       Mon May 30 01:15:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aml_region.c,v 1.1 2007/01/14 04:36:13 christos Exp $  */
+/*     $NetBSD: aml_region.c,v 1.2 2011/05/30 01:15:30 dyoung Exp $    */
 
 /*-
  * Copyright (c) 2000 Mitsuru IWASAKI <iwasaki%FreeBSD.org@localhost>
@@ -30,7 +30,7 @@
  *     $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_region.c,v 1.5 2000/11/09 06:24:45 iwasaki Exp $
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: aml_region.c,v 1.1 2007/01/14 04:36:13 christos Exp $");
+__RCSID("$NetBSD: aml_region.c,v 1.2 2011/05/30 01:15:30 dyoung Exp $");
 
 /*
  * Region I/O subroutine
@@ -41,7 +41,6 @@
 #include <sys/systm.h>
 #include <sys/bus.h>
 
-#include <machine/bus.h>
 #include <machine/resource.h>
 #include <sys/rman.h>
 



Home | Main Index | Thread Index | Old Index