diff options
Diffstat (limited to 'include/linux/slab_def.h')
| -rw-r--r-- | include/linux/slab_def.h | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 8694f7a5d92b..4ad2c5a26399 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h @@ -81,14 +81,15 @@ struct kmem_cache {  #endif  #ifdef CONFIG_SLAB_FREELIST_RANDOM -	void *random_seq; +	unsigned int *random_seq;  #endif  	struct kmem_cache_node *node[MAX_NUMNODES];  };  static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, -				void *x) { +				void *x) +{  	void *object = x - (x - page->s_mem) % cache->size;  	void *last_object = page->s_mem + (cache->num - 1) * cache->size; |