[PATCH] add Phytec pcm030 board support
    Jon Smirl 
    jonsmirl at gmail.com
       
    Tue May  6 03:01:14 EST 2008
    
    
  
Did this get fixed somehow? I used to need this to boot a pcm030.
diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c
index 272872d..c982adc 100644
--- a/fs/jffs2/scan.c
+++ b/fs/jffs2/scan.c
@@ -16,6 +16,7 @@
 #include <linux/pagemap.h>
 #include <linux/crc32.h>
 #include <linux/compiler.h>
+#include <asm/io.h>
 #include "nodelist.h"
 #include "summary.h"
 #include "debug.h"
@@ -505,7 +506,7 @@ static int jffs2_scan_eraseblock (struct
jffs2_sb_info *c, struct jffs2_eraseblo
                                        sumptr = kmalloc(sumlen, GFP_KERNEL);
                                        if (!sumptr)
                                                return -ENOMEM;
-                                       memcpy(sumptr + sumlen -
buf_len, buf + buf_size - buf_len, buf_len);
+                                       memcpy_fromio(sumptr + sumlen
- buf_len, buf + buf_size - buf_len, buf_len);
                                }
                                if (buf_len < sumlen) {
                                        /* Need to read more so that
the entire summary node is present */
@@ -1035,7 +1036,7 @@ static int jffs2_scan_dirent_node(struct
jffs2_sb_info *c, struct jffs2_eraseblo
        if (!fd) {
                return -ENOMEM;
        }
-       memcpy(&fd->name, rd->name, checkedlen);
+       memcpy_fromio(&fd->name, rd->name, checkedlen);
        fd->name[checkedlen] = 0;
        crc = crc32(0, fd->name, rd->nsize);
~
-- 
Jon Smirl
jonsmirl at gmail.com
    
    
More information about the Linuxppc-dev
mailing list