Errors compiling current mtd CVS version
I just checked out the mtd+jffs2 patches from CVS, and patched them into a 2.4.19 kernel tree, using patchin.sh.
Now I've enabled mtd & jffs2, and try to compile.
#include <linux/init.h> seems to be missing in mtd/chips/amd_flash.c (errors on __init and __exit)
#include <linux/sched.h> seems to be missing in fs/jffs2/write.c (error on 'current')
If I have jffs enabled as well, it failes because Makefile.common is missing.
When I also patch in zlib (using patchin.sh), Makefile.common is missing both in zlib_inflate and zlib_deflate.
Is there a problem with my config?
Best regards,
Pieter
Quoted 7 lines · Pieter Grimmerink
I just checked out the mtd+jffs2 patches from CVS, and patched them into a 2.4.19 kernel tree, using
patchin.sh.Now I've enabled mtd & jffs2, and try to compile.
#include <
linux/init.h> seems to be missing inmtd/chips/amd_flash.c(errors on__initand__exit)
Fixed; thanks for the report. Why are you using amd_flash.c and not the non-deprecated drivers?
Quoted 2 lines
#include <
linux/sched.h> seems to be missing infs/jffs2/write.c(error on 'current')
That one is unexpected -- can you give more details?
Quoted 4 lines
If I have jffs enabled as well, it failes because Makefile.common is missing.
When I also patch in zlib (using
patchin.sh), Makefile.common is missing both inzlib_inflateandzlib_deflate.
I've removed JFFS from patchin.sh, and also made the script substitute Makefile.common for Makefile only if it's actually present (untested).
Signature · 1 line
dwmw2
Quoted 2 lines · David Woodhouse
Why are you using
amd_flash.cand not the
non-deprecated drivers?
I was not really using them, but they turned out to be in the defconfig file of my arch (cris). Quickly removed that.
Quoted 4 lines
Quoted 2 lines
#include <
linux/sched.h> seems to be missing infs/jffs2/write.c(error on 'current')That one is unexpected -- can you give more details?
Must have been my fault, probably because I didn't do a clean rebuild after I tried to find the reason for the previous errors.
Now it compiles again without <linux/sched.h>
Regards,
Pieter