|
@@ -1720,7 +1720,7 @@ next:
|
|
cachep->objsize = size;
|
|
cachep->objsize = size;
|
|
|
|
|
|
if (flags & CFLGS_OFF_SLAB)
|
|
if (flags & CFLGS_OFF_SLAB)
|
|
- cachep->slabp_cache = kmem_find_general_cachep(slab_size,0);
|
|
|
|
|
|
+ cachep->slabp_cache = kmem_find_general_cachep(slab_size, 0u);
|
|
cachep->ctor = ctor;
|
|
cachep->ctor = ctor;
|
|
cachep->dtor = dtor;
|
|
cachep->dtor = dtor;
|
|
cachep->name = name;
|
|
cachep->name = name;
|
|
@@ -2839,7 +2839,7 @@ out:
|
|
* New and improved: it will now make sure that the object gets
|
|
* New and improved: it will now make sure that the object gets
|
|
* put on the correct node list so that there is no false sharing.
|
|
* put on the correct node list so that there is no false sharing.
|
|
*/
|
|
*/
|
|
-void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid)
|
|
|
|
|
|
+void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast flags, int nodeid)
|
|
{
|
|
{
|
|
unsigned long save_flags;
|
|
unsigned long save_flags;
|
|
void *ptr;
|
|
void *ptr;
|