@@ -584,7 +584,8 @@ static inline struct array_cache *ac_data(kmem_cache_t *cachep)
584584 return cachep -> array [smp_processor_id ()];
585585}
586586
587- static inline kmem_cache_t * __find_general_cachep (size_t size , int gfpflags )
587+ static inline kmem_cache_t * __find_general_cachep (size_t size ,
588+ unsigned int __nocast gfpflags )
588589{
589590 struct cache_sizes * csizep = malloc_sizes ;
590591
@@ -608,7 +609,8 @@ static inline kmem_cache_t *__find_general_cachep(size_t size, int gfpflags)
608609 return csizep -> cs_cachep ;
609610}
610611
611- kmem_cache_t * kmem_find_general_cachep (size_t size , int gfpflags )
612+ kmem_cache_t * kmem_find_general_cachep (size_t size ,
613+ unsigned int __nocast gfpflags )
612614{
613615 return __find_general_cachep (size , gfpflags );
614616}
@@ -2100,7 +2102,7 @@ cache_alloc_debugcheck_before(kmem_cache_t *cachep, unsigned int __nocast flags)
21002102#if DEBUG
21012103static void *
21022104cache_alloc_debugcheck_after (kmem_cache_t * cachep ,
2103- unsigned long flags , void * objp , void * caller )
2105+ unsigned int __nocast flags , void * objp , void * caller )
21042106{
21052107 if (!objp )
21062108 return objp ;
@@ -2442,7 +2444,7 @@ void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid)
24422444}
24432445EXPORT_SYMBOL (kmem_cache_alloc_node );
24442446
2445- void * kmalloc_node (size_t size , int flags , int node )
2447+ void * kmalloc_node (size_t size , unsigned int __nocast flags , int node )
24462448{
24472449 kmem_cache_t * cachep ;
24482450
@@ -3094,7 +3096,7 @@ unsigned int ksize(const void *objp)
30943096 * @s: the string to duplicate
30953097 * @gfp: the GFP mask used in the kmalloc() call when allocating memory
30963098 */
3097- char * kstrdup (const char * s , int gfp )
3099+ char * kstrdup (const char * s , unsigned int __nocast gfp )
30983100{
30993101 size_t len ;
31003102 char * buf ;
0 commit comments