Commit 21856241 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] AFS: afs_voltypes isn't always required

afs_voltypes is only used #ifdef __KDEBUG, and even then it doesn't has to be
a global symbol.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 699a81c1
...@@ -26,8 +26,6 @@ typedef enum { ...@@ -26,8 +26,6 @@ typedef enum {
AFSVL_BACKVOL, /* backup volume */ AFSVL_BACKVOL, /* backup volume */
} __attribute__((packed)) afs_voltype_t; } __attribute__((packed)) afs_voltype_t;
extern const char *afs_voltypes[];
typedef enum { typedef enum {
AFS_FTYPE_INVALID = 0, AFS_FTYPE_INVALID = 0,
AFS_FTYPE_FILE = 1, AFS_FTYPE_FILE = 1,
......
...@@ -24,7 +24,9 @@ ...@@ -24,7 +24,9 @@
#include "vlclient.h" #include "vlclient.h"
#include "internal.h" #include "internal.h"
const char *afs_voltypes[] = { "R/W", "R/O", "BAK" }; #ifdef __KDEBUG
static const char *afs_voltypes[] = { "R/W", "R/O", "BAK" };
#endif
#ifdef AFS_CACHING_SUPPORT #ifdef AFS_CACHING_SUPPORT
static cachefs_match_val_t afs_volume_cache_match(void *target, static cachefs_match_val_t afs_volume_cache_match(void *target,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment