]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] namespace pollution in reiserfs
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Jan 2003 12:13:53 +0000 (04:13 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 13 Jan 2003 12:13:53 +0000 (04:13 -0800)
From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  balloc[] and tails[] are used only in the file they are defined
  in, so they should be made static

fs/reiserfs/super.c

index 69e5fc60866e7d27b5c62ff2e0720a7157a18161..198bdfec0d90eb14609ecece952c5aceb726be37 100644 (file)
@@ -517,7 +517,7 @@ typedef struct {
 
 /* possible values for "-o block-allocator=" and bits which are to be set in
    s_mount_opt of reiserfs specific part of in-core super block */
-const arg_desc_t balloc[] = {
+static const arg_desc_t balloc[] = {
     {"noborder", REISERFS_NO_BORDER},
     {"no_unhashed_relocation", REISERFS_NO_UNHASHED_RELOCATION},
     {"hashed_relocation", REISERFS_HASHED_RELOCATION},
@@ -525,7 +525,7 @@ const arg_desc_t balloc[] = {
     {NULL, -1}
 };
 
-const arg_desc_t tails[] = {
+static const arg_desc_t tails[] = {
     {"on", REISERFS_LARGETAIL},
     {"off", -1},
     {"small", REISERFS_SMALLTAIL},