mtd/fs/jffs2 compr_zlib.c,1.24,1.25
David Woodhouse
dwmw2 at infradead.org
Wed Dec 3 04:25:46 EST 2003
Update of /home/cvs/mtd/fs/jffs2
In directory phoenix.infradead.org:/tmp/cvs-serv9812
Modified Files:
compr_zlib.c
Log Message:
Include vmalloc.h and init.h only for eCos
Index: compr_zlib.c
===================================================================
RCS file: /home/cvs/mtd/fs/jffs2/compr_zlib.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- compr_zlib.c 4 Oct 2003 08:33:06 -0000 1.24
+++ compr_zlib.c 3 Dec 2003 09:25:43 -0000 1.25
@@ -17,8 +17,6 @@
#include <linux/config.h>
#include <linux/kernel.h>
-#include <linux/vmalloc.h>
-#include <linux/init.h>
#include <linux/slab.h>
#include <linux/zlib.h>
#include <linux/zutil.h>
@@ -39,6 +37,9 @@
static z_stream inf_strm, def_strm;
#ifdef __KERNEL__ /* Linux-only */
+#include <linux/vmalloc.h>
+#include <linux/init.h>
+
int __init jffs2_zlib_init(void)
{
def_strm.workspace = vmalloc(zlib_deflate_workspacesize());
More information about the linux-mtd-cvs
mailing list