diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-01-07 22:32:17 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-01-07 22:32:17 -0800 |
commit | 21856241a1a07823976c7777f5eefa2dc51ba9fe (patch) | |
tree | 0f3bc0a7df11d68dad8b82aeba618d4a4196457e /fs | |
parent | 699a81c1cad3ce41be7f80b1c727376aeb7805bb (diff) | |
download | history-21856241a1a07823976c7777f5eefa2dc51ba9fe.tar.gz |
[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: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/types.h | 2 | ||||
-rw-r--r-- | fs/afs/volume.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/afs/types.h b/fs/afs/types.h index 27596b35dcc601..b1a2367c7587f8 100644 --- a/fs/afs/types.h +++ b/fs/afs/types.h @@ -26,8 +26,6 @@ typedef enum { AFSVL_BACKVOL, /* backup volume */ } __attribute__((packed)) afs_voltype_t; -extern const char *afs_voltypes[]; - typedef enum { AFS_FTYPE_INVALID = 0, AFS_FTYPE_FILE = 1, diff --git a/fs/afs/volume.c b/fs/afs/volume.c index 4ebdb2d50b7694..0ff4b86476e392 100644 --- a/fs/afs/volume.c +++ b/fs/afs/volume.c @@ -24,7 +24,9 @@ #include "vlclient.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 static cachefs_match_val_t afs_volume_cache_match(void *target, |