|
@@ -1812,7 +1812,7 @@ static void *get_partial_node(struct kmem_cache *s, struct kmem_cache_node *n,
|
|
{
|
|
{
|
|
struct page *page, *page2;
|
|
struct page *page, *page2;
|
|
void *object = NULL;
|
|
void *object = NULL;
|
|
- int available = 0;
|
|
|
|
|
|
+ unsigned int available = 0;
|
|
int objects;
|
|
int objects;
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -4962,10 +4962,10 @@ static ssize_t cpu_partial_show(struct kmem_cache *s, char *buf)
|
|
static ssize_t cpu_partial_store(struct kmem_cache *s, const char *buf,
|
|
static ssize_t cpu_partial_store(struct kmem_cache *s, const char *buf,
|
|
size_t length)
|
|
size_t length)
|
|
{
|
|
{
|
|
- unsigned long objects;
|
|
|
|
|
|
+ unsigned int objects;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
- err = kstrtoul(buf, 10, &objects);
|
|
|
|
|
|
+ err = kstrtouint(buf, 10, &objects);
|
|
if (err)
|
|
if (err)
|
|
return err;
|
|
return err;
|
|
if (objects && !kmem_cache_has_cpu_partial(s))
|
|
if (objects && !kmem_cache_has_cpu_partial(s))
|