diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2006-10-18 01:47:25 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-12-04 02:00:22 -0500 |
| commit | f6a570333e554b48ad589e7137c77c57809eee81 (patch) | |
| tree | 68dd6d5c8fe537a19a84a4189202f5cf70925c17 /include | |
| parent | 2b5f6dcce5bf94b9b119e9ed8d537098ec61c3d2 (diff) | |
[PATCH] severing module.h->sched.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-x86_64/elf.h | 1 | ||||
| -rw-r--r-- | include/linux/acct.h | 1 | ||||
| -rw-r--r-- | include/linux/module.h | 13 | ||||
| -rw-r--r-- | include/scsi/libiscsi.h | 2 |
4 files changed, 4 insertions, 13 deletions
diff --git a/include/asm-x86_64/elf.h b/include/asm-x86_64/elf.h index a406fcb1e924..6d24ea7c4d9d 100644 --- a/include/asm-x86_64/elf.h +++ b/include/asm-x86_64/elf.h | |||
| @@ -45,7 +45,6 @@ typedef struct user_i387_struct elf_fpregset_t; | |||
| 45 | 45 | ||
| 46 | #ifdef __KERNEL__ | 46 | #ifdef __KERNEL__ |
| 47 | #include <asm/processor.h> | 47 | #include <asm/processor.h> |
| 48 | #include <asm/compat.h> | ||
| 49 | 48 | ||
| 50 | /* | 49 | /* |
| 51 | * This is used to ensure we don't load something for the wrong architecture. | 50 | * This is used to ensure we don't load something for the wrong architecture. |
diff --git a/include/linux/acct.h b/include/linux/acct.h index 0496d1f09952..302eb727ecb8 100644 --- a/include/linux/acct.h +++ b/include/linux/acct.h | |||
| @@ -119,6 +119,7 @@ struct acct_v3 | |||
| 119 | #ifdef CONFIG_BSD_PROCESS_ACCT | 119 | #ifdef CONFIG_BSD_PROCESS_ACCT |
| 120 | struct vfsmount; | 120 | struct vfsmount; |
| 121 | struct super_block; | 121 | struct super_block; |
| 122 | struct pacct_struct; | ||
| 122 | extern void acct_auto_close_mnt(struct vfsmount *m); | 123 | extern void acct_auto_close_mnt(struct vfsmount *m); |
| 123 | extern void acct_auto_close(struct super_block *sb); | 124 | extern void acct_auto_close(struct super_block *sb); |
| 124 | extern void acct_init_pacct(struct pacct_struct *pacct); | 125 | extern void acct_init_pacct(struct pacct_struct *pacct); |
diff --git a/include/linux/module.h b/include/linux/module.h index 9258ffd8a7f0..d33df2408e05 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | * Rewritten by Richard Henderson <rth@tamu.edu> Dec 1996 | 6 | * Rewritten by Richard Henderson <rth@tamu.edu> Dec 1996 |
| 7 | * Rewritten again by Rusty Russell, 2002 | 7 | * Rewritten again by Rusty Russell, 2002 |
| 8 | */ | 8 | */ |
| 9 | #include <linux/sched.h> | ||
| 10 | #include <linux/spinlock.h> | 9 | #include <linux/spinlock.h> |
| 11 | #include <linux/list.h> | 10 | #include <linux/list.h> |
| 12 | #include <linux/stat.h> | 11 | #include <linux/stat.h> |
| @@ -411,17 +410,7 @@ static inline int try_module_get(struct module *module) | |||
| 411 | return ret; | 410 | return ret; |
| 412 | } | 411 | } |
| 413 | 412 | ||
| 414 | static inline void module_put(struct module *module) | 413 | extern void module_put(struct module *module); |
| 415 | { | ||
| 416 | if (module) { | ||
| 417 | unsigned int cpu = get_cpu(); | ||
| 418 | local_dec(&module->ref[cpu].count); | ||
| 419 | /* Maybe they're waiting for us to drop reference? */ | ||
| 420 | if (unlikely(!module_is_live(module))) | ||
| 421 | wake_up_process(module->waiter); | ||
| 422 | put_cpu(); | ||
| 423 | } | ||
| 424 | } | ||
| 425 | 414 | ||
| 426 | #else /*!CONFIG_MODULE_UNLOAD*/ | 415 | #else /*!CONFIG_MODULE_UNLOAD*/ |
| 427 | static inline int try_module_get(struct module *module) | 416 | static inline int try_module_get(struct module *module) |
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 61eebec00a7b..ea0816d4904d 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
| @@ -25,6 +25,8 @@ | |||
| 25 | 25 | ||
| 26 | #include <linux/types.h> | 26 | #include <linux/types.h> |
| 27 | #include <linux/mutex.h> | 27 | #include <linux/mutex.h> |
| 28 | #include <linux/timer.h> | ||
| 29 | #include <linux/workqueue.h> | ||
| 28 | #include <scsi/iscsi_proto.h> | 30 | #include <scsi/iscsi_proto.h> |
| 29 | #include <scsi/iscsi_if.h> | 31 | #include <scsi/iscsi_if.h> |
| 30 | 32 | ||
