summaryrefslogtreecommitdiff
path: root/fs/jffs2/readinode.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2005-07-30 19:29:30 +0400
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-11-06 20:06:10 +0300
commit737b7661e059680a68afb3df0a088fd976f666b7 (patch)
tree4d590f906217780f5e73ddbbf6ff39e7dd7b74c0 /fs/jffs2/readinode.c
parente0d601373b1123ea43b1fdec08d9e58a079ae35c (diff)
downloadlinux-737b7661e059680a68afb3df0a088fd976f666b7.tar.xz
[JFFS2] Fix up new debug code for eCos build
The debug code cleanup broke the eCos build. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2/readinode.c')
-rw-r--r--fs/jffs2/readinode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index 67732ba08c3e..8c6665d0e334 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -7,11 +7,12 @@
*
* For licensing information, see the file 'LICENCE' in this directory.
*
- * $Id: readinode.c,v 1.132 2005/07/28 14:46:40 dedekind Exp $
+ * $Id: readinode.c,v 1.133 2005/07/30 15:28:24 lunn Exp $
*
*/
#include <linux/kernel.h>
+#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/crc32.h>
@@ -249,7 +250,7 @@ read_dnode(struct jffs2_sb_info *c,
if (unlikely(je32_to_cpu(rd->offset) > je32_to_cpu(rd->isize)) ||
unlikely(PAD(je32_to_cpu(rd->csize) + sizeof(*rd)) != PAD(je32_to_cpu(rd->totlen)))) {
JFFS2_WARNING("inode node header CRC is corrupted at %#08x\n", ref_offset(ref));
- __jffs2_dbg_dump_node(c, ref_offset(ref));
+ jffs2_dbg_dump_node(c, ref_offset(ref));
return 1;
}
@@ -384,7 +385,7 @@ read_unknown(struct jffs2_sb_info *c,
if (crc32(0, un, sizeof(struct jffs2_unknown_node) - 4) != je32_to_cpu(un->hdr_crc)) {
/* Hmmm. This should have been caught at scan time. */
JFFS2_NOTICE("node header CRC failed at %#08x. But it must have been OK earlier.\n", ref_offset(ref));
- __jffs2_dbg_dump_node(c, ref_offset(ref));
+ jffs2_dbg_dump_node(c, ref_offset(ref));
return 1;
} else {
switch(je16_to_cpu(un->nodetype) & JFFS2_COMPAT_MASK) {