fix -Wundef warnings in reiser4 code
PATCH 1/1 fix -Wundef warnings in reiser4 code
This patch fixes the following wundef errors in fs/reiser4/* .
Signed-off-by Nick Sillik <[email protected]>
fs/reiser4/plugin/cryptcompress.c +1 -1
@@ -597,7 +597,7 @@return 0 ; } -#if REISER4_TRACE +#ifdef REISER4_TRACE #define reserve4cluster (inode, clust, msg) __reserve4cluster(inode, clust)#else #define reserve4cluster (inode, clust, msg) __reserve4cluster(inode, clust)
fs/reiser4/plugin/dir/hashed_dir.c +1 -1
@@ -1206,7 +1206,7 @@reiser4_key *key;/* how many entries with duplicate key was scanned so far. */ int non_uniq; -#if REISER4_USE_COLLISION_LIMIT ||REISER4_STATS +#if defined(REISER4_USE_COLLISION_LIMIT ) || defined(REISER4_STATS )/* scan limit */ int max_non_uniq;#endif
fs/reiser4/plugin/item/cde.c +1 -1
@@ -463,7 +463,7 @@ (extract_dir_id_from_key (&item_key) ==extract_dir_id_from_key (key)); } -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT /* ->print() method for this item plugin. */ reiser4_internal void print_cde(const char *prefix /* prefix to print */ ,
fs/reiser4/plugin/item/ctail.c +1 -1
@@ -195,7 +195,7 @@return data->length; } -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT /* ->print() method for this item plugin. */ reiser4_internal void print_ctail(const char *prefix /* prefix to print */ ,
fs/reiser4/plugin/item/internal.c +1 -1
@@ -210,7 +210,7 @@return 0 ; } -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT /* debugging aid: print human readable information about internal item at @coord */ reiser4_internal void
fs/reiser4/plugin/item/item.c +6 -6
@@ -350,7 +350,7 @@ .max_unit_key = NULL, .estimate = NULL, .item_data_by_flow =NULL , -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT .print = print_sd, .item_stat = item_stat_static_sd, #endif
@@ -403,7 +403,7 @@ .max_unit_key = NULL, .estimate = NULL, .item_data_by_flow =NULL , -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT .print = print_de, .item_stat = NULL, #endif
@@ -460,7 +460,7 @@ .max_unit_key = unit_key_cde, .estimate = estimate_cde, .item_data_by_flow = NULL -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT , .print = print_cde, .item_stat = NULL#endif
@@ -517,7 +517,7 @@ .max_unit_key = NULL, .estimate = NULL, .item_data_by_flow = NULL -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT , .print = print_internal, .item_stat = NULL#endif
@@ -678,7 +678,7 @@ .max_unit_key = unit_key_tail, .estimate = estimate_ctail, .item_data_by_flow = NULL -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT , .print = print_ctail, .item_stat = NULL#endif
@@ -738,7 +738,7 @@ .max_unit_key = NULL, .estimate = NULL, .item_data_by_flow =NULL , -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT .print =NULL , .item_stat = NULL, #endif
fs/reiser4/plugin/item/sde.c +1 -1
@@ -18,7 +18,7 @@#include <linux/dcache.h> /* for struct dentry */ #include <linux/quotaops.h> -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT reiser4_internal voidprint_de (const char *prefix/* prefix to print */ ,coord_t * coord/* item to print */ )
fs/reiser4/plugin/node/node40.c +1 -1
@@ -445,7 +445,7 @@assert ("nikita-3214" ,equi (found,keyeq (&node40_ih_at (node, left)->key, key))); -#if REISER4_STATS +#ifdef REISER4_STATS NODE_ADDSTAT (node, found, !!found);NODE_ADDSTAT (node, pos, left);if (items >1 )
fs/reiser4/plugin/plugin.c +1 -1
@@ -323,7 +323,7 @@return &plugins[type_id].plugins_list; } -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT /* print human readable plugin information */ reiser4_internal void print_plugin(const char *prefix /* prefix to print */ ,
fs/reiser4/seal.c +1 -1
@@ -209,7 +209,7 @@return UNDER_SPIN (jnode,ZJNODE (node), (seal->version == node->version)); } -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT /* debugging function: print human readable form of @seal. */ reiser4_internal voidprint_seal (const char *prefix,const seal_t * seal)
fs/reiser4/super.c +1 -1
@@ -378,7 +378,7 @@#endif } -#if REISER4_DEBUG_OUTPUT +#ifdef REISER4_DEBUG_OUTPUT /* * debugging function: output human readable information about file system * parameters