lkml.org 
[lkml]   [2006]   [Nov]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateWed, 22 Nov 2006 05:17:40 +0100
FromAdrian Bunk <>
Subject[-mm patch] fs/fscache/main.c: cleanups
This patch contains the following cleanups:
- remove the unused global variable fscache_debug
- make the needlessly global struct fscache_kset static

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---
 fs/fscache/main.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
--- linux-2.6.19-rc5-mm2/fs/fscache/main.c.old	2006-11-22 03:08:53.000000000 +0100
+++ linux-2.6.19-rc5-mm2/fs/fscache/main.c	2006-11-22 03:09:23.000000000 +0100
@@ -16,8 +16,6 @@
 #include <linux/slab.h>
 #include "fscache-int.h"
 
-int fscache_debug;
-
 static int fscache_init(void);
 static void fscache_exit(void);
 
@@ -41,14 +39,12 @@ static struct kobj_type fscache_ktype = 
 	.default_attrs	= NULL,
 };
 
-struct kset fscache_kset = {
+static struct kset fscache_kset = {
 	.kobj.name	= "fscache",
 	.kobj.kset	= &fs_subsys.kset,
 	.ktype		= &fscache_ktype,
 };
 
-EXPORT_SYMBOL(fscache_kset);
-
 /*****************************************************************************/
 /*
  * initialise the fs caching module
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-11-22 05:23    [from the cache]
©2003-2008