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

Stephen Tweedie (sct@redhat.com)
Tue, 8 Apr 2003 07:47:04 -0400


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/