Remove unused <atomic.h> include; add <sys/device.h> includes where

needed.
This commit is contained in:
martin 2005-06-22 22:07:48 +00:00
parent c8b33aa328
commit adc4b94498
5 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ath.c,v 1.47 2005/06/22 06:15:51 dyoung Exp $ */
/* $NetBSD: ath.c,v 1.48 2005/06/22 22:07:48 martin Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath.c,v 1.76 2005/01/24 20:31:24 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.47 2005/06/22 06:15:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.48 2005/06/22 22:07:48 martin Exp $");
#endif
/*
@ -93,6 +93,7 @@ __KERNEL_RCSID(0, "$NetBSD: ath.c,v 1.47 2005/06/22 06:15:51 dyoung Exp $");
#include <netinet/in.h>
#endif
#include <sys/device.h>
#include <dev/ic/ath_netbsd.h>
#define AR_DEBUG

View File

@ -40,6 +40,7 @@
#include <machine/bus.h>
#include <machine/stdarg.h>
#include <sys/endian.h>
#include <sys/device.h>
#include <net/if.h>
#include <net/if_dl.h>

View File

@ -39,7 +39,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/ath_rate/onoe/onoe.c,v 1.4 2005/01/24 19:32:10 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: athrate-onoe.c,v 1.2 2005/06/22 06:15:51 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: athrate-onoe.c,v 1.3 2005/06/22 22:07:48 martin Exp $");
#endif
/*
@ -53,6 +53,7 @@ __KERNEL_RCSID(0, "$NetBSD: athrate-onoe.c,v 1.2 2005/06/22 06:15:51 dyoung Exp
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/errno.h>
#include <sys/device.h>
#include <machine/bus.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ath_pci.c,v 1.9 2005/06/22 06:16:02 dyoung Exp $ */
/* $NetBSD: if_ath_pci.c,v 1.10 2005/06/22 22:07:48 martin Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@ -41,7 +41,7 @@
__FBSDID("$FreeBSD: src/sys/dev/ath/if_ath_pci.c,v 1.11 2005/01/18 18:08:16 sam Exp $");
#endif
#ifdef __NetBSD__
__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.9 2005/06/22 06:16:02 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.10 2005/06/22 22:07:48 martin Exp $");
#endif
/*
@ -57,6 +57,7 @@ __KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.9 2005/06/22 06:16:02 dyoung Exp $"
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/errno.h>
#include <sys/device.h>
#include <machine/bus.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ieee80211_netbsd.h,v 1.2 2005/06/22 06:16:02 dyoung Exp $ */
/* $NetBSD: ieee80211_netbsd.h,v 1.3 2005/06/22 22:07:49 martin Exp $ */
/*-
* Copyright (c) 2003-2005 Sam Leffler, Errno Consulting
* All rights reserved.
@ -164,7 +164,6 @@ typedef struct ieee80211_lock acl_lock_t;
* is the last reference, otherwise 0
* ieee80211_node_refcnt reference count for printing (only)
*/
#include <machine/atomic.h>
#define ieee80211_node_initref(_ni) \
do { ((_ni)->ni_refcnt = 1); } while (0)