Skip to contentSkip to conversation

slab: fix gfp flags type

PATCH New Randy.Dunlap 1 participant 1 message Oct 5, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slab: fix gfp flags type

From: Randy Dunlap <[email protected]>

Fix nocast sparse warnings in slab.h:
include/linux/slab.h:127:34: warning: implicit cast to nocast type

---

 include/linux/slab.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
include/linux/slab.h renamed from include/linux/slab.h~slab_gfpmask +4 -2
diff -Naurp linux-2614-rc2-git6/include/linux/slab.h~slab_gfpmask linux-2614-rc2-git6/include/linux/slab.h
@@ -122,11 +122,13 @@ extern void *kmem_cache_alloc_node(kmem_
 			unsigned int __nocast flags, int node);
 extern void *kmalloc_node(size_t size, unsigned int __nocast flags, int node);
 #else
-static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int node)
+static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep,
+					unsigned int __nocast flags, int node)
 {
 	return kmem_cache_alloc(cachep, flags);
 }
-static inline void *kmalloc_node(size_t size, unsigned int __nocast flags, int node)
+static inline void *kmalloc_node(size_t size,
+				unsigned int __nocast flags, int node)
 {
 	return kmalloc(size, flags);
 }

---

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors