Commit 1097ca0a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix a few declarations

extern decls in .c files are evil.  Put the send_sigio(), fcntl_setlease()
and fcntl_getlease() into fs.h.
parent 02488b12
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/slab.h> #include <linux/slab.h>
extern void send_sigio(struct fown_struct *fown, int fd, int band);
int dir_notify_enable = 1; int dir_notify_enable = 1;
static rwlock_t dn_lock = RW_LOCK_UNLOCKED; static rwlock_t dn_lock = RW_LOCK_UNLOCKED;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/fs.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/dnotify.h> #include <linux/dnotify.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
...@@ -18,9 +19,6 @@ ...@@ -18,9 +19,6 @@
#include <asm/siginfo.h> #include <asm/siginfo.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
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) void set_close_on_exec(unsigned int fd, int flag)
{ {
struct files_struct *files = current->files; struct files_struct *files = current->files;
......
...@@ -609,6 +609,10 @@ extern int fcntl_getlk64(struct file *, struct flock64 __user *); ...@@ -609,6 +609,10 @@ extern int fcntl_getlk64(struct file *, struct flock64 __user *);
extern int fcntl_setlk64(struct file *, unsigned int, struct flock64 __user *); extern int fcntl_setlk64(struct file *, unsigned int, struct flock64 __user *);
#endif #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 */ /* fs/locks.c */
extern void locks_init_lock(struct file_lock *); extern void locks_init_lock(struct file_lock *);
extern void locks_copy_lock(struct file_lock *, struct file_lock *); extern void locks_copy_lock(struct file_lock *, struct file_lock *);
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
*/ */
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/poll.h> #include <linux/poll.h>
#include <linux/fs.h>
#include <linux/file.h> #include <linux/file.h>
#include <linux/hash.h> #include <linux/hash.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -61,8 +62,6 @@ struct futex_q { ...@@ -61,8 +62,6 @@ struct futex_q {
static struct list_head futex_queues[1<<FUTEX_HASHBITS]; static struct list_head futex_queues[1<<FUTEX_HASHBITS];
static spinlock_t futex_lock = SPIN_LOCK_UNLOCKED; static spinlock_t futex_lock = SPIN_LOCK_UNLOCKED;
extern void send_sigio(struct fown_struct *fown, int fd, int band);
/* Futex-fs vfsmount entry: */ /* Futex-fs vfsmount entry: */
static struct vfsmount *futex_mnt; static struct vfsmount *futex_mnt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment