[Patch 1/1] 2.4: Fix for jbd compiler warnings.

From: Stephen Tweedie (sct@redhat.com)
Date: Tue Apr 08 2003 - 06:47:04 EST


Fixes two compiler warnings in jbd, one of which causes compile
failure under gcc-3.3. (jbd.h fix from akpm.)

--- linux-2.4-ext3push/fs/jbd/revoke.c.=K0000=.orig
+++ linux-2.4-ext3push/fs/jbd/revoke.c
@@ -136,7 +136,7 @@ repeat:
 oom:
         if (!journal_oom_retry)
                 return -ENOMEM;
- jbd_debug(1, "ENOMEM in " __FUNCTION__ ", retrying.\n");
+ jbd_debug(1, "ENOMEM in %s, retrying.\n", __FUNCTION__);
         yield();
         goto repeat;
 }
--- linux-2.4-ext3push/include/linux/jbd.h.=K0000=.orig
+++ linux-2.4-ext3push/include/linux/jbd.h
@@ -281,7 +281,7 @@ void buffer_assertion_failure(struct buf
         do { \
                 if (!(expr)) { \
                         printk(KERN_ERR "EXT3-fs unexpected failure: %s;\n", # expr); \
- printk(KERN_ERR ## why); \
+ printk(KERN_ERR why); \
                 } \
         } while (0)
 #define J_EXPECT(expr, why...) __journal_expect(expr, ## why)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:15 EST