[-mm patch] fs/proc/: make code static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 27, 2007 at 11:49:28PM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.20-rc4-mm1:
>...
> +sysctl-reimplement-the-sysctl-proc-support.patch
>...
>  A few sysctl patches.
>...


proc_match() and struct proc_sys_root can now become static.

Signed-off-by: Adrian Bunk <[email protected]>

---

 fs/proc/generic.c       |    2 +-
 fs/proc/proc_sysctl.c   |    2 +-
 include/linux/proc_fs.h |    2 --
 3 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.20-rc6-mm3/include/linux/proc_fs.h.old	2007-02-06 08:34:02.000000000 +0100
+++ linux-2.6.20-rc6-mm3/include/linux/proc_fs.h	2007-02-06 08:34:09.000000000 +0100
@@ -128,8 +128,6 @@
 extern int proc_fill_super(struct super_block *,void *,int);
 extern struct inode *proc_get_inode(struct super_block *, unsigned int, struct proc_dir_entry *);
 
-extern int proc_match(int, const char *,struct proc_dir_entry *);
-
 /*
  * These are generic /proc routines that use the internal
  * "struct proc_dir_entry" tree to traverse the filesystem.
--- linux-2.6.20-rc6-mm3/fs/proc/generic.c.old	2007-02-06 08:34:17.000000000 +0100
+++ linux-2.6.20-rc6-mm3/fs/proc/generic.c	2007-02-06 08:34:25.000000000 +0100
@@ -33,7 +33,7 @@
 
 DEFINE_SPINLOCK(proc_subdir_lock);
 
-int proc_match(int len, const char *name, struct proc_dir_entry *de)
+static int proc_match(int len, const char *name, struct proc_dir_entry *de)
 {
 	if (de->namelen != len)
 		return 0;
--- linux-2.6.20-rc6-mm3/fs/proc/proc_sysctl.c.old	2007-02-06 08:34:33.000000000 +0100
+++ linux-2.6.20-rc6-mm3/fs/proc/proc_sysctl.c	2007-02-06 08:34:42.000000000 +0100
@@ -466,7 +466,7 @@
 	.d_revalidate	= proc_sys_revalidate,
 };
 
-struct proc_dir_entry *proc_sys_root;
+static struct proc_dir_entry *proc_sys_root;
 
 int proc_sys_init(void)
 {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux