From 1097ca0aabd3e0cf7cc7f476ff6ac2e642591a19 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 31 Aug 2003 04:34:19 -0700 Subject: [PATCH] [PATCH] Fix a few declarations extern decls in .c files are evil. Put the send_sigio(), fcntl_setlease() and fcntl_getlease() into fs.h. --- fs/dnotify.c | 2 -- fs/fcntl.c | 4 +--- include/linux/fs.h | 4 ++++ kernel/futex.c | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/fs/dnotify.c b/fs/dnotify.c index 642cbe1920b2c..4beb8cde840cd 100644 --- a/fs/dnotify.c +++ b/fs/dnotify.c @@ -20,8 +20,6 @@ #include #include -extern void send_sigio(struct fown_struct *fown, int fd, int band); - int dir_notify_enable = 1; static rwlock_t dn_lock = RW_LOCK_UNLOCKED; diff --git a/fs/fcntl.c b/fs/fcntl.c index 9daa2a9076494..5d2c07c2badf5 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -18,9 +19,6 @@ #include #include -extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg); -extern int fcntl_getlease(struct file *filp); - void set_close_on_exec(unsigned int fd, int flag) { struct files_struct *files = current->files; diff --git a/include/linux/fs.h b/include/linux/fs.h index 108e53f176c9a..936f34c469dd3 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -609,6 +609,10 @@ extern int fcntl_getlk64(struct file *, struct flock64 __user *); extern int fcntl_setlk64(struct file *, unsigned int, struct flock64 __user *); #endif +extern void send_sigio(struct fown_struct *fown, int fd, int band); +extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg); +extern int fcntl_getlease(struct file *filp); + /* fs/locks.c */ extern void locks_init_lock(struct file_lock *); extern void locks_copy_lock(struct file_lock *, struct file_lock *); diff --git a/kernel/futex.c b/kernel/futex.c index 36500829d9be0..4557addfc6d6a 100644 --- a/kernel/futex.c +++ b/kernel/futex.c @@ -28,6 +28,7 @@ */ #include #include +#include #include #include #include @@ -61,8 +62,6 @@ struct futex_q { static struct list_head futex_queues[1<