Ist mit diesem Patch behoben, keine Warnung mehr beim Kompilierenrhabarber1848 hat geschrieben:Kernel 2.6.25.6 zeigt folgende Warnung beim Kompilieren:Code: Alles auswählen
CC fs/squashfs/inode.o fs/squashfs/inode.c: In function `init_inodecache': fs/squashfs/inode.c:2141: warning: passing arg 5 of `kmem_cache_create' from incompatible pointer type CC fs/squashfs/LzmaDecode.o LD fs/squashfs/squashfs.o LD fs/squashfs/built-in.o
und das Image bootet korrekt mit LZMA-Support:
Code: Alles auswählen
--- inode.c.org	2008-06-16 09:19:13.000000000 +0200
+++ inode.c	2008-06-16 10:11:28.000000000 +0200
@@ -43,6 +43,7 @@
 #include <linux/zlib.h>
 #include <linux/blkdev.h>
 #include <linux/vmalloc.h>
+#include <linux/version.h>
 #include <asm/uaccess.h>
 #include <asm/semaphore.h>
 
@@ -2124,9 +2125,13 @@
 	kmem_cache_free(squashfs_inode_cachep, SQUASHFS_I(inode));
 }
 
-
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23)
 static void init_once(void * foo, struct kmem_cache * cachep, unsigned long flags)
 {
+#else
+static void init_once(struct kmem_cache * cachep, void * foo)
+{
+#endif
 	struct squashfs_inode_info *ei = foo;
 
 		inode_init_once(&ei->vfs_inode);
CC fs/squashfs/inode.o
CC fs/squashfs/LzmaDecode.o
LD fs/squashfs/squashfs.o
LD fs/squashfs/built-in.o


