All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Sillik <n.sillik@temple.edu>
To: reiserfs-dev@namesys.com, Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: [-mm PATCH] fix -Wundef warnings in reiser4 code
Date: Tue, 23 Aug 2005 16:15:46 -0400	[thread overview]
Message-ID: <430B83F2.3080109@temple.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 113 bytes --]

This patch fixes the following wundef errors in fs/reiser4/* .

Signed-off-by: Nick Sillik <n.sillik@temple.edu>

[-- Attachment #2: reiser4-wundef.patch --]
[-- Type: text/x-patch, Size: 7347 bytes --]

diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/cryptcompress.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/cryptcompress.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/cryptcompress.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/cryptcompress.c	2005-08-23 16:08:32.000000000 -0400
@@ -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)
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/dir/hashed_dir.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/dir/hashed_dir.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/dir/hashed_dir.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/dir/hashed_dir.c	2005-08-23 16:09:27.000000000 -0400
@@ -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
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/cde.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/cde.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/cde.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/cde.c	2005-08-23 16:04:25.000000000 -0400
@@ -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 */ ,
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/ctail.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/ctail.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/ctail.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/ctail.c	2005-08-23 16:04:50.000000000 -0400
@@ -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 */ ,
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/internal.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/internal.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/internal.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/internal.c	2005-08-23 16:04:40.000000000 -0400
@@ -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
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/item.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/item.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/item.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/item.c	2005-08-23 16:05:45.000000000 -0400
@@ -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
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/sde.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/sde.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/item/sde.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/item/sde.c	2005-08-23 16:04:07.000000000 -0400
@@ -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 void
 print_de(const char *prefix /* prefix to print */ ,
 	 coord_t * coord /* item to print */ )
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/node/node40.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/node/node40.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/node/node40.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/node/node40.c	2005-08-23 16:08:59.000000000 -0400
@@ -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)
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/plugin/plugin.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/plugin.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/plugin/plugin.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/plugin/plugin.c	2005-08-23 16:08:15.000000000 -0400
@@ -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 */ ,
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/seal.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/seal.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/seal.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/seal.c	2005-08-23 16:02:47.000000000 -0400
@@ -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 void
 print_seal(const char *prefix, const seal_t * seal)
diff -urN linux-2.6.13-rc6-mm2/fs/reiser4/super.c linux-2.6.13-rc6-mm2-patched/fs/reiser4/super.c
--- linux-2.6.13-rc6-mm2/fs/reiser4/super.c	2005-08-23 15:51:47.000000000 -0400
+++ linux-2.6.13-rc6-mm2-patched/fs/reiser4/super.c	2005-08-23 16:02:55.000000000 -0400
@@ -378,7 +378,7 @@
 #endif
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 /*
  * debugging function: output human readable information about file system
  * parameters

                 reply	other threads:[~2005-08-23 20:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430B83F2.3080109@temple.edu \
    --to=n.sillik@temple.edu \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiserfs-dev@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.