headers: kobject.h redux
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 10 Jan 2011 06:18:25 +0000 (08:18 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jan 2011 16:51:44 +0000 (08:51 -0800)
Remove kobject.h from files which don't need it, notably,
sched.h and fs.h.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 files changed:
arch/arm/plat-s3c24xx/cpu-freq.c
arch/powerpc/platforms/pseries/eeh_sysfs.c
drivers/char/snsc.h
drivers/net/bonding/bonding.h
drivers/pci/hotplug/acpiphp.h
drivers/pci/hotplug/rpaphp_slot.c
drivers/s390/char/tape_class.h
drivers/sh/clk/core.c
drivers/usb/musb/musb_debugfs.c
fs/gfs2/incore.h
fs/nilfs2/super.c
fs/sysfs/inode.c
fs/sysfs/sysfs.h
include/linux/firmware-map.h
include/linux/fs.h
include/linux/sched.h
include/linux/sunrpc/cache.h
security/apparmor/include/match.h

index 1ecc15bfe9d40b44a7d6225ba1b413640da2f460..25a8fc7f512e64ea7b1fe77af32febc7b53bb212 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/sysdev.h>
-#include <linux/kobject.h>
 #include <linux/sysfs.h>
 #include <linux/slab.h>
 
index 15e13b568904a4fb3eb7d533c3d4c0b650681d01..23982c7892d2a2abb470a74558a764f68045bca9 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/pci.h>
 #include <asm/ppc-pci.h>
 #include <asm/pci-bridge.h>
-#include <linux/kobject.h>
 
 /**
  * EEH_SHOW_ATTR -- create sysfs entry for eeh statistic
index 4be62eda9fbc6ddac0522e8d321b7afd1bba015a..e8c52c882b210aa87b0f76ddaa2ac3e714eb1c53 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/types.h>
 #include <linux/spinlock.h>
 #include <linux/wait.h>
-#include <linux/kobject.h>
 #include <linux/fs.h>
 #include <linux/cdev.h>
 #include <linux/semaphore.h>
index 4da384cc7603aefb65b38bd2c3a2200a4e8d9470..31fe980e4e28e5c102780aa6d9ae8450cc224763 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/timer.h>
 #include <linux/proc_fs.h>
 #include <linux/if_bonding.h>
-#include <linux/kobject.h>
 #include <linux/cpumask.h>
 #include <linux/in6.h>
 #include "bond_3ad.h"
index bab52047baa84101d2448a06b617381b21918444..7722108e78df4e9f5294aa5ab337f58af491f1ac 100644 (file)
@@ -36,7 +36,6 @@
 #define _ACPIPHP_H
 
 #include <linux/acpi.h>
-#include <linux/kobject.h>
 #include <linux/mutex.h>
 #include <linux/pci_hotplug.h>
 
index 2ea9cf1a8d02ec2fa2785f9493610f392a6b7be4..b283bbea6d24ad4132844694ae68351ff920e28f 100644 (file)
@@ -24,7 +24,6 @@
  */
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/kobject.h>
 #include <linux/sysfs.h>
 #include <linux/pci.h>
 #include <linux/string.h>
index 707b7f48c232d78bd56dd44fee580921ad1169d9..9e32780c317f39e7f7d0cb3a7296b8292ebbc699 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/major.h>
-#include <linux/kobject.h>
 #include <linux/kobj_map.h>
 #include <linux/cdev.h>
 
index 3f5e387ed56486ba5c454f4a809a9a57d84d80d5..5f63c3b83828ea1db4c9e18cb2eb7a92b9611dc6 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/list.h>
-#include <linux/kobject.h>
 #include <linux/sysdev.h>
 #include <linux/seq_file.h>
 #include <linux/err.h>
index 9e8639d4e862b65a2b23bc27a29fd09ba0b60ec1..b0176e4569e03afd9bd48788449f2d3cf0a68a30 100644 (file)
@@ -36,7 +36,6 @@
 #include <linux/sched.h>
 #include <linux/init.h>
 #include <linux/list.h>
-#include <linux/kobject.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/debugfs.h>
index 8d3d2b4a0a7d64431d63edff082cbedbd5b2543b..a79790c06275fb0e328b85107b39ccfc7a63ce31 100644 (file)
@@ -11,6 +11,7 @@
 #define __INCORE_DOT_H__
 
 #include <linux/fs.h>
+#include <linux/kobject.h>
 #include <linux/workqueue.h>
 #include <linux/dlm.h>
 #include <linux/buffer_head.h>
index 6ea32d9b1b9da8d33bda40eae23352c9d9409ab9..70dfdd532b83d9158c16f17df6741869f4a7f8bf 100644 (file)
@@ -47,7 +47,6 @@
 #include <linux/crc32.h>
 #include <linux/vfs.h>
 #include <linux/writeback.h>
-#include <linux/kobject.h>
 #include <linux/seq_file.h>
 #include <linux/mount.h>
 #include "nilfs.h"
index 30ac27345586ea7b943a0042f0f2d52df7acc2f8..0a12eb89cd32b544aa720804d2836c4c6d2c8a3c 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
+#include <linux/sysfs.h>
 #include <linux/xattr.h>
 #include <linux/security.h>
 #include "sysfs.h"
index ffaaa816bfba4c3c1c845e772845749675210e30..3d28af31d86300ecbddde7b4dc9d7eb25a255dc6 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <linux/lockdep.h>
+#include <linux/kobject_ns.h>
 #include <linux/fs.h>
 
 struct sysfs_open_dirent;
index c6dcc1dfe78111bb1f32c127809ae956db789d10..43fe52fcef0f60973cb61c33a30e0cbb00450811 100644 (file)
@@ -17,7 +17,6 @@
 #define _LINUX_FIRMWARE_MAP_H
 
 #include <linux/list.h>
-#include <linux/kobject.h>
 
 /*
  * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
index baf3e556ff0ed3f2e9d993a53e1f3850dd0fc8d1..f84d9928bdb16c75ea5cb0575892f8d7437c02bb 100644 (file)
@@ -382,7 +382,6 @@ struct inodes_stat_t {
 #include <linux/path.h>
 #include <linux/stat.h>
 #include <linux/cache.h>
-#include <linux/kobject.h>
 #include <linux/list.h>
 #include <linux/radix-tree.h>
 #include <linux/prio_tree.h>
@@ -402,6 +401,7 @@ struct hd_geometry;
 struct iovec;
 struct nameidata;
 struct kiocb;
+struct kobject;
 struct pipe_inode_info;
 struct poll_table_struct;
 struct kstatfs;
index c118a7f203aa8886ff5e1b072075e56481cdbbd1..abc527aa8550200bfb229743d700fee8b0b168d3 100644 (file)
@@ -87,7 +87,6 @@ struct sched_param {
 #include <linux/timer.h>
 #include <linux/hrtimer.h>
 #include <linux/task_io_accounting.h>
-#include <linux/kobject.h>
 #include <linux/latencytop.h>
 #include <linux/cred.h>
 
index 6950c981882dfa4c30247e75fa93758145d0d2a9..78aa104250b7b78755b570480353d66c304062cf 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef _LINUX_SUNRPC_CACHE_H_
 #define _LINUX_SUNRPC_CACHE_H_
 
+#include <linux/kref.h>
 #include <linux/slab.h>
 #include <asm/atomic.h>
 #include <linux/proc_fs.h>
index 734a6d35112c4c9fc9278f456073ffe069c6e5a6..19ba16e8aacdb11fc02ba5fe3b6194455f4109af 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef __AA_MATCH_H
 #define __AA_MATCH_H
 
+#include <linux/kref.h>
 #include <linux/workqueue.h>
 
 #define DFA_NOMATCH                    0