headers: kref.h redux
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 26 Sep 2009 15:37:22 +0000 (19:37 +0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Sep 2009 17:17:19 +0000 (10:17 -0700)
* 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>
drivers/net/irda/kingsun-sir.c
drivers/net/irda/ks959-sir.c
drivers/net/irda/ksdazzle-sir.c
drivers/net/irda/mcs7780.c
drivers/scsi/pmcraid.h
drivers/usb/misc/sisusbvga/sisusb_init.c
include/linux/ipc.h
include/linux/kref.h
include/linux/nfs_fs.h

index 2fc30b449eea37ee5d86e6b0b676d09a4868404a..cb90d640007a5fff46e5a34897fcd128cf93a76c 100644 (file)
@@ -66,7 +66,6 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <linux/kref.h>
 #include <linux/usb.h>
 #include <linux/device.h>
 #include <linux/crc32.h>
index f4d13fc51cbc2928dc749c98b0813d494ac99a0b..b54d3b48045e7860b8a1ec91665e2107f35a85da 100644 (file)
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <linux/kref.h>
 #include <linux/usb.h>
 #include <linux/device.h>
 #include <linux/crc32.h>
index 5f9d7335397299ecefe33c12f5f17d95cd84632a..8d713ebac15ba162e5b7fd65e5438fac27e626fa 100644 (file)
@@ -82,7 +82,6 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <linux/kref.h>
 #include <linux/usb.h>
 #include <linux/device.h>
 #include <linux/crc32.h>
index b3d30bcb88e765ce0ca2f59ec0f8f53a2263408c..c0e0bb9401d3a1eb40ef19e907446af05074fa3b 100644 (file)
@@ -50,7 +50,6 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <linux/kref.h>
 #include <linux/usb.h>
 #include <linux/device.h>
 #include <linux/crc32.h>
index 614b3a764fedea1d2442365a068719e9bcf1f7e9..3441b3f908274cdf4b37acc39a28df24575d10fb 100644 (file)
@@ -26,7 +26,6 @@
 #include <linux/completion.h>
 #include <linux/list.h>
 #include <scsi/scsi.h>
-#include <linux/kref.h>
 #include <scsi/scsi_cmnd.h>
 #include <linux/cdev.h>
 #include <net/netlink.h>
index 273de5d0934e6d969a56eeb4d9761e6b443a5dfc..0ab990744830c4fc321eca69fa485c59997670ba 100644 (file)
@@ -43,7 +43,6 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
-#include <linux/kref.h>
 
 #include "sisusb.h"
 
index b8826107b5180e78b163e3b92f605bf7dcd22faf..3b1594d662b02cbc123d6970f647ff501340d4c0 100644 (file)
@@ -78,8 +78,6 @@ struct ipc_kludge {
 #define IPCCALL(version,op)    ((version)<<16 | (op))
 
 #ifdef __KERNEL__
-
-#include <linux/kref.h>
 #include <linux/spinlock.h>
 
 #define IPCMNI 32768  /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
index 0cef6badd6fb7cc07c445986e88bfaeb5e8903ed..b0cb0ebad9e60a1980844ed393c7115e6a94f827 100644 (file)
@@ -16,7 +16,6 @@
 #define _KREF_H_
 
 #include <linux/types.h>
-#include <asm/atomic.h>
 
 struct kref {
        atomic_t refcount;
index f6b90240dd41fc9c43b624c3b844b6f3879ce2c8..d09db1bc90830af34e6985129b52109d8b5fa05f 100644 (file)
@@ -40,7 +40,6 @@
 #ifdef __KERNEL__
 
 #include <linux/in.h>
-#include <linux/kref.h>
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/rbtree.h>