* [2.6 patch] fs/nfs/: make some functions static
@ 2005-04-23 0:03 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-04-23 0:03 UTC (permalink / raw)
To: trond.myklebust; +Cc: linux-kernel
This patch makes some needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
fs/nfs/idmap.c | 4 ++--
fs/nfs/inode.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- linux-2.6.12-rc2-mm3-full/fs/nfs/idmap.c.old 2005-04-20 23:55:03.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/fs/nfs/idmap.c 2005-04-20 23:55:20.000000000 +0200
@@ -80,7 +80,7 @@
char __user *, size_t);
static ssize_t idmap_pipe_downcall(struct file *, const char __user *,
size_t);
-void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
+static void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
static unsigned int fnvhash32(const void *, size_t);
@@ -435,7 +435,7 @@
return ret;
}
-void
+static void
idmap_pipe_destroy_msg(struct rpc_pipe_msg *msg)
{
struct idmap_msg *im = msg->data;
--- linux-2.6.12-rc2-mm3-full/fs/nfs/inode.c.old 2005-04-20 23:55:35.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/fs/nfs/inode.c 2005-04-20 23:56:05.000000000 +0200
@@ -1996,7 +1996,7 @@
}
}
-int nfs_init_inodecache(void)
+static int nfs_init_inodecache(void)
{
nfs_inode_cachep = kmem_cache_create("nfs_inode_cache",
sizeof(struct nfs_inode),
@@ -2008,7 +2008,7 @@
return 0;
}
-void nfs_destroy_inodecache(void)
+static void nfs_destroy_inodecache(void)
{
if (kmem_cache_destroy(nfs_inode_cachep))
printk(KERN_INFO "nfs_inode_cache: not all structures were freed\n");
^ permalink raw reply [flat|nested] 2+ messages in thread
* [2.6 patch] fs/nfs/: make some functions static
@ 2005-05-01 15:42 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-05-01 15:42 UTC (permalink / raw)
To: Andrew Morton; +Cc: trond.myklebust, linux-kernel
This patch makes some needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 23 Apr 2005
fs/nfs/idmap.c | 4 ++--
fs/nfs/inode.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- linux-2.6.12-rc2-mm3-full/fs/nfs/idmap.c.old 2005-04-20 23:55:03.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/fs/nfs/idmap.c 2005-04-20 23:55:20.000000000 +0200
@@ -80,7 +80,7 @@
char __user *, size_t);
static ssize_t idmap_pipe_downcall(struct file *, const char __user *,
size_t);
-void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
+static void idmap_pipe_destroy_msg(struct rpc_pipe_msg *);
static unsigned int fnvhash32(const void *, size_t);
@@ -435,7 +435,7 @@
return ret;
}
-void
+static void
idmap_pipe_destroy_msg(struct rpc_pipe_msg *msg)
{
struct idmap_msg *im = msg->data;
--- linux-2.6.12-rc2-mm3-full/fs/nfs/inode.c.old 2005-04-20 23:55:35.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/fs/nfs/inode.c 2005-04-20 23:56:05.000000000 +0200
@@ -1996,7 +1996,7 @@
}
}
-int nfs_init_inodecache(void)
+static int nfs_init_inodecache(void)
{
nfs_inode_cachep = kmem_cache_create("nfs_inode_cache",
sizeof(struct nfs_inode),
@@ -2008,7 +2008,7 @@
return 0;
}
-void nfs_destroy_inodecache(void)
+static void nfs_destroy_inodecache(void)
{
if (kmem_cache_destroy(nfs_inode_cachep))
printk(KERN_INFO "nfs_inode_cache: not all structures were freed\n");
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-01 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-23 0:03 [2.6 patch] fs/nfs/: make some functions static Adrian Bunk
2005-05-01 15:42 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).