diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 10:55:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 10:55:04 +0100 |
commit | 9a8f531efaa05ee2d1639bc7299a218f2f268612 (patch) | |
tree | ae77602ffb081b0897ec934b912981009bccc478 /fs | |
parent | b2cc1d18f57f8af42347a4b7a05afcc7e3e6d66d (diff) | |
parent | bf36d5d6981012a44fdf38da1ec3a5966920c843 (diff) | |
download | barebox-9a8f531efaa05ee2d1639bc7299a218f2f268612.tar.gz barebox-9a8f531efaa05ee2d1639bc7299a218f2f268612.tar.xz |
Merge branch 'for-next/missing-prototypes'
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -93,7 +93,7 @@ static struct fs_device_d *get_fsdevice_by_path(const char *path); LIST_HEAD(fs_device_list); -struct vfsmount *mntget(struct vfsmount *mnt) +static struct vfsmount *mntget(struct vfsmount *mnt) { if (!mnt) return NULL; @@ -103,7 +103,7 @@ struct vfsmount *mntget(struct vfsmount *mnt) return mnt; } -void mntput(struct vfsmount *mnt) +static void mntput(struct vfsmount *mnt) { if (!mnt) return; @@ -111,7 +111,7 @@ void mntput(struct vfsmount *mnt) mnt->ref--; } -struct vfsmount *lookup_mnt(struct path *path) +static struct vfsmount *lookup_mnt(struct path *path) { struct fs_device_d *fsdev; @@ -181,7 +181,7 @@ static int check_fd(int fd) return 0; } -int create(struct dentry *dir, struct dentry *dentry) +static int create(struct dentry *dir, struct dentry *dentry) { struct inode *inode; @@ -609,7 +609,7 @@ static int fs_probe(struct device_d *dev) return 0; } -void dentry_kill(struct dentry *dentry) +static void dentry_kill(struct dentry *dentry) { if (dentry->d_inode) iput(dentry->d_inode); @@ -622,7 +622,7 @@ void dentry_kill(struct dentry *dentry) free(dentry); } -int dentry_delete_subtree(struct super_block *sb, struct dentry *parent) +static int dentry_delete_subtree(struct super_block *sb, struct dentry *parent) { struct dentry *dentry, *tmp; @@ -1158,7 +1158,7 @@ void d_set_d_op(struct dentry *dentry, const struct dentry_operations *op) * available. On a success the dentry is returned. The name passed in is * copied and the copy passed in may be reused after this call. */ -struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) +static struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) { struct dentry *dentry; @@ -1198,7 +1198,7 @@ struct dentry *__d_alloc(struct super_block *sb, const struct qstr *name) * available. On a success the dentry is returned. The name passed in is * copied and the copy passed in may be reused after this call. */ -struct dentry *d_alloc(struct dentry *parent, const struct qstr *name) +static struct dentry *d_alloc(struct dentry *parent, const struct qstr *name) { struct dentry *dentry = __d_alloc(parent->d_sb, name); if (!dentry) @@ -1271,7 +1271,7 @@ static bool d_same_name(const struct dentry *dentry, return strncmp(dentry->d_name.name, name->name, name->len) == 0; } -struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name) +static struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name) { struct dentry *dentry; @@ -1287,7 +1287,7 @@ struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name) return NULL; } -void d_invalidate(struct dentry *dentry) +static void d_invalidate(struct dentry *dentry) { } @@ -1393,13 +1393,13 @@ static void set_nameidata(struct nameidata *p, int dfd, struct filename *name) p->total_link_count = 0; } -void path_get(const struct path *path) +static void path_get(const struct path *path) { mntget(path->mnt); dget(path->dentry); } -void path_put(const struct path *path) +static void path_put(const struct path *path) { dput(path->dentry); mntput(path->mnt); @@ -1582,7 +1582,7 @@ static int lookup_fast(struct nameidata *nd, struct path *path) * Return 1 if we went up a level and 0 if we were already at the * root. */ -int follow_up(struct path *path) +static int follow_up(struct path *path) { struct vfsmount *parent, *mnt = path->mnt; struct dentry *mountpoint; @@ -1774,7 +1774,7 @@ static int component_len(const char *name, char separator) return len; } -struct filename *getname(const char *filename) +static struct filename *getname(const char *filename) { struct filename *result; @@ -1793,7 +1793,7 @@ struct filename *getname(const char *filename) return result; } -void putname(struct filename *name) +static void putname(struct filename *name) { BUG_ON(name->refcnt <= 0); @@ -2140,7 +2140,7 @@ static struct fs_device_d *get_fsdevice_by_path(const char *pathname) return fsdev; } -int vfs_rmdir(struct inode *dir, struct dentry *dentry) +static int vfs_rmdir(struct inode *dir, struct dentry *dentry) { int error; @@ -2164,7 +2164,7 @@ out: return error; } -int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) +static int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) { int error; @@ -2423,7 +2423,7 @@ out: } EXPORT_SYMBOL(unlink); -int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname) +static int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname) { if (!dir->i_op->symlink) return -EPERM; |