|
@@ -2572,13 +2572,13 @@ static void *alloc_slabmgmt(struct kmem_cache *cachep,
|
|
return freelist;
|
|
return freelist;
|
|
}
|
|
}
|
|
|
|
|
|
-static inline freelist_idx_t get_free_obj(struct page *page, unsigned char idx)
|
|
|
|
|
|
+static inline freelist_idx_t get_free_obj(struct page *page, unsigned int idx)
|
|
{
|
|
{
|
|
return ((freelist_idx_t *)page->freelist)[idx];
|
|
return ((freelist_idx_t *)page->freelist)[idx];
|
|
}
|
|
}
|
|
|
|
|
|
static inline void set_free_obj(struct page *page,
|
|
static inline void set_free_obj(struct page *page,
|
|
- unsigned char idx, freelist_idx_t val)
|
|
|
|
|
|
+ unsigned int idx, freelist_idx_t val)
|
|
{
|
|
{
|
|
((freelist_idx_t *)(page->freelist))[idx] = val;
|
|
((freelist_idx_t *)(page->freelist))[idx] = val;
|
|
}
|
|
}
|