headers: kref.h redux

* remove asm/atomic.h inclusion from kref.h -- not needed, linux/types.h
  is enough for atomic_t
* remove linux/kref.h inclusion from files which do not need it.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alexey Dobriyan 2009-09-26 19:37:22 +04:00 committed by Linus Torvalds
parent 3b383767c4
commit 1d1764c398
9 changed files with 0 additions and 10 deletions

View file

@ -66,7 +66,6 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kref.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/crc32.h> #include <linux/crc32.h>

View file

@ -118,7 +118,6 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kref.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/crc32.h> #include <linux/crc32.h>

View file

@ -82,7 +82,6 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kref.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/crc32.h> #include <linux/crc32.h>

View file

@ -50,7 +50,6 @@
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/kref.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/crc32.h> #include <linux/crc32.h>

View file

@ -26,7 +26,6 @@
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/list.h> #include <linux/list.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
#include <linux/kref.h>
#include <scsi/scsi_cmnd.h> #include <scsi/scsi_cmnd.h>
#include <linux/cdev.h> #include <linux/cdev.h>
#include <net/netlink.h> #include <net/netlink.h>

View file

@ -43,7 +43,6 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/kref.h>
#include "sisusb.h" #include "sisusb.h"

View file

@ -78,8 +78,6 @@ struct ipc_kludge {
#define IPCCALL(version,op) ((version)<<16 | (op)) #define IPCCALL(version,op) ((version)<<16 | (op))
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/kref.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */

View file

@ -16,7 +16,6 @@
#define _KREF_H_ #define _KREF_H_
#include <linux/types.h> #include <linux/types.h>
#include <asm/atomic.h>
struct kref { struct kref {
atomic_t refcount; atomic_t refcount;

View file

@ -40,7 +40,6 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/in.h> #include <linux/in.h>
#include <linux/kref.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/rbtree.h> #include <linux/rbtree.h>