From: Nick Sillik <n.sillik@temple.edu>
To: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>,
reiserfs-dev@namesys.com
Subject: [Patch 2.6.13-rc3-mm3]fs/reiser4/plugin/item/static_stat.c fix -Wundef errors in two files
Date: Thu, 28 Jul 2005 17:47:18 -0400 [thread overview]
Message-ID: <42E95266.70702@temple.edu> (raw)
[-- 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
reply other threads:[~2005-07-28 21:48 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=42E95266.70702@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox