slab: fix gfp flags type
Subsystems (2)
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
Signed-off-by Randy Dunlap <[email protected]>
---
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
@@ -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