This kernel patch from the squashfs-3.1r2 release does not compile on my armeb-linux-gcc 4.1.1 when optimizing for size (-Os). This works around that problem by using optimization flag -O2 instead for these two files. Leon Woestenberg