public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch 2.6.13-rc3-mm3]fs/reiser4/plugin/item/static_stat.c fix -Wundef errors in two files
@ 2005-07-28 21:47 Nick Sillik
  0 siblings, 0 replies; only message in thread
From: Nick Sillik @ 2005-07-28 21:47 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton, reiserfs-dev

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

This fixes -Wundef errors in:
fs/reiser4/plugin/item/static_stat.c

Nick Sillik
n.sillik@temple.edu

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



[-- Attachment #2: reiser4_wundef.diff --]
[-- Type: text/plain, Size: 3495 bytes --]

diff -urN a/fs/reiser4/plugin/item/static_stat.c b/fs/reiser4/plugin/item/static_stat.c
--- a/fs/reiser4/plugin/item/static_stat.c	2005-07-28 17:36:09.000000000 -0400
+++ b/fs/reiser4/plugin/item/static_stat.c	2005-07-28 17:39:43.000000000 -0400
@@ -36,7 +36,7 @@
 	assert("nikita-617", *length >= 0);
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 /* ->print() method of static sd item. Prints human readable information about
    sd at @coord */
 reiser4_internal void
@@ -415,7 +415,7 @@
 	return 0;
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 static void
 print_lw_sd(const char *prefix, char **area /* position in stat-data */ ,
 	    int *len /* remaining length */ )
@@ -505,7 +505,7 @@
 	return 0;
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 static void
 print_unix_sd(const char *prefix, char **area /* position in stat-data */ ,
 	      int *len /* remaining length */ )
@@ -569,7 +569,7 @@
 	return 0;
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 static void
 print_large_times_sd(const char *prefix, char **area /* position in stat-data */,
 		     int *len /* remaining length */ )
@@ -674,7 +674,7 @@
 	return result;
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 static void
 print_symlink_sd(const char *prefix, char **area /* position in stat-data */ ,
 		 int *len /* remaining length */ )
@@ -1049,7 +1049,7 @@
 	return result;
 }
 
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 static void
 print_crypto_sd(const char *prefix, char **area /* position in stat-data */ ,
 		 int *len /* remaining length */ )
@@ -1082,7 +1082,7 @@
 			       .absent = NULL,
 			       .save_len = save_len_lw_sd,
 			       .save = save_lw_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 			       .print = print_lw_sd,
 #endif
 			       .alignment = 8
@@ -1100,7 +1100,7 @@
 		       .absent = absent_unix_sd,
 		       .save_len = save_len_unix_sd,
 		       .save = save_unix_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 		       .print = print_unix_sd,
 #endif
 		       .alignment = 8
@@ -1118,7 +1118,7 @@
 		       .absent = NULL,
 		       .save_len = save_len_large_times_sd,
 		       .save = save_large_times_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 		       .print = print_large_times_sd,
 #endif
 		       .alignment = 8
@@ -1137,7 +1137,7 @@
 			  .absent = NULL,
 			  .save_len = save_len_symlink_sd,
 			  .save = save_symlink_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 			  .print = print_symlink_sd,
 #endif
 			  .alignment = 8
@@ -1155,7 +1155,7 @@
 			 .absent = absent_plugin_sd,
 			 .save_len = save_len_plugin_sd,
 			 .save = save_plugin_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 			 .print = NULL,
 #endif
 			 .alignment = 8
@@ -1173,7 +1173,7 @@
 				.absent = NULL,
 				.save_len = save_len_flags_sd,
 				.save = save_flags_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 				.print = NULL,
 #endif
 				.alignment = 8
@@ -1191,7 +1191,7 @@
 				.absent = NULL,
 				.save_len = save_len_flags_sd,
 				.save = save_flags_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 				.print = NULL,
 #endif
 				.alignment = 8
@@ -1210,7 +1210,7 @@
 				/* return IO_ERROR if smthng is wrong */
 				.save_len = save_len_crypto_sd,
 				.save = save_crypto_sd,
-#if REISER4_DEBUG_OUTPUT
+#ifdef REISER4_DEBUG_OUTPUT
 				.print = print_crypto_sd,
 #endif
 				.alignment = 8

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-28 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 21:47 [Patch 2.6.13-rc3-mm3]fs/reiser4/plugin/item/static_stat.c fix -Wundef errors in two files Nick Sillik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox