From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 07/20] fs: Make locally used functions static
Date: Thu, 18 Oct 2018 08:58:14 +0200 [thread overview]
Message-ID: <20181018065827.19973-8-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20181018065827.19973-1-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
fs/fs.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/fs/fs.c b/fs/fs.c
index d76d829140..899b9d7bc3 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -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;
@@ -1152,7 +1152,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;
@@ -1192,7 +1192,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)
@@ -1265,7 +1265,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;
@@ -1281,7 +1281,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)
{
}
@@ -1358,13 +1358,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);
@@ -1547,7 +1547,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;
@@ -1739,7 +1739,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;
@@ -1758,7 +1758,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);
@@ -2105,7 +2105,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;
@@ -2129,7 +2129,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;
@@ -2388,7 +2388,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;
--
2.19.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-10-18 6:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-18 6:58 [PATCH 00/20] Fixes for -Wmissing-prototypes warnings Sascha Hauer
2018-10-18 6:58 ` [PATCH 01/20] ARM: Fix missing prototype warning Sascha Hauer
2018-10-18 6:58 ` [PATCH 02/20] mtd: nand: mxs: make locally used functions static Sascha Hauer
2018-10-18 6:58 ` [PATCH 03/20] video: imx-ipu-v3: Make locally used function static Sascha Hauer
2018-10-18 6:58 ` [PATCH 04/20] ARM: mmu: rename dma_alloc Sascha Hauer
2018-10-18 6:58 ` [PATCH 05/20] dma: Add missing re-inclusion protector Sascha Hauer
2018-10-18 15:31 ` Sam Ravnborg
2018-10-18 6:58 ` [PATCH 06/20] ARM: mmu: include dma.h Sascha Hauer
2018-10-18 6:58 ` Sascha Hauer [this message]
2018-10-18 6:58 ` [PATCH 08/20] ARM: cache: include mmu.h Sascha Hauer
2018-10-18 6:58 ` [PATCH 09/20] ARM: boards: GuF Vincell: Make locally used function static Sascha Hauer
2018-10-18 6:58 ` [PATCH 10/20] ARM: boards: karo-tx6x: " Sascha Hauer
2018-10-18 6:58 ` [PATCH 11/20] ARM: boards: kindle mx50: " Sascha Hauer
2018-10-18 6:58 ` [PATCH 12/20] ARM: boards: kontron-samx6i: Add include file to provide prototype Sascha Hauer
2018-10-18 15:33 ` Sam Ravnborg
2018-10-18 6:58 ` [PATCH 13/20] ARM: boards: phytec-som-imx6: Make locally used function static Sascha Hauer
2018-10-18 6:58 ` [PATCH 14/20] ARM: legacy Linux support: Make locally used functions static Sascha Hauer
2018-10-18 6:58 ` [PATCH 15/20] drivers: clk: imx5: " Sascha Hauer
2018-10-18 6:58 ` [PATCH 16/20] usb: ulpi: " Sascha Hauer
2018-10-18 6:58 ` [PATCH 17/20] ARM: unwind: Provide prototypes for exported functions Sascha Hauer
2018-10-18 6:58 ` [PATCH 18/20] ARM: unwind: Make locally used function static Sascha Hauer
2018-10-18 6:58 ` [PATCH 19/20] ARM: i.MX: Add missing include Sascha Hauer
2018-10-18 15:35 ` Sam Ravnborg
2018-10-19 11:51 ` Sascha Hauer
2018-10-18 6:58 ` [PATCH 20/20] nvmem: i.MX ocotp: Make locally used functions static Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181018065827.19973-8-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox