[ewg] [PATCH 4/8 warnings] struct kmem_cache
Jeremy Brown
jeremy.brown at qlogic.com
Fri Oct 5 16:47:39 PDT 2007
Tziporet, Vlad,
I've included the fourth of the eight warning fix patches.
Thanks!
Jeremy Brown
---
Add #define to silence warnings generated by references to 'struct kmem_cache'.
Signed-off-by: John Gregor <john.gregor at qlogic.com>
diff -r 6717e8feefb2 kernel_addons/backport/2.6.9_U3/include/linux/slab.h
--- a/kernel_addons/backport/2.6.9_U3/include/linux/slab.h Mon Jul 02 14:50:18 2007 -0700
+++ b/kernel_addons/backport/2.6.9_U3/include/linux/slab.h Mon Jul 02 14:52:00 2007 -0700
@@ -20,4 +20,6 @@ void *kmalloc_node(size_t size, gfp_t fl
return kmalloc(size, flags);
}
+#define kmem_cache kmem_cache_s
+
#endif
diff -r 6717e8feefb2 kernel_addons/backport/2.6.9_U4/include/linux/slab.h
--- a/kernel_addons/backport/2.6.9_U4/include/linux/slab.h Mon Jul 02 14:50:18 2007 -0700
+++ b/kernel_addons/backport/2.6.9_U4/include/linux/slab.h Mon Jul 02 14:52:00 2007 -0700
@@ -20,4 +20,6 @@ void *kmalloc_node(size_t size, gfp_t fl
return kmalloc(size, flags);
}
+#define kmem_cache kmem_cache_s
+
#endif
diff -r 6717e8feefb2 kernel_addons/backport/2.6.9_U5/include/linux/slab.h
--- a/kernel_addons/backport/2.6.9_U5/include/linux/slab.h Mon Jul 02 14:50:18 2007 -0700
+++ b/kernel_addons/backport/2.6.9_U5/include/linux/slab.h Mon Jul 02 14:52:00 2007 -0700
@@ -20,4 +20,6 @@ void *kmalloc_node(size_t size, gfp_t fl
return kmalloc(size, flags);
}
+#define kmem_cache kmem_cache_s
+
#endif
More information about the ewg
mailing list