aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>2013-10-30 06:04:01 -0400
committerPekka Enberg <penberg@iki.fi>2013-10-30 08:09:12 -0400
commit7e00735520ffb00bda3e08c441d0a4dba42913a7 (patch)
treeafb1973a14e12f4c92b38c1f7a968810938e9f55 /mm
parent0172f779e4314639a8ed440082cfe9e3450954e8 (diff)
slab: replace non-existing 'struct freelist *' with 'void *'
There is no 'strcut freelist', but codes use pointer to 'struct freelist'. Although compiler doesn't complain anything about this wrong usage and codes work fine, but fixing it is better. Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Pekka Enberg <penberg@iki.fi>
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/slab.c b/mm/slab.c
index a8a93497d7d6..a983e3084332 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1954,7 +1954,7 @@ static void slab_destroy_debugcheck(struct kmem_cache *cachep,
1954 */ 1954 */
1955static void slab_destroy(struct kmem_cache *cachep, struct page *page) 1955static void slab_destroy(struct kmem_cache *cachep, struct page *page)
1956{ 1956{
1957 struct freelist *freelist; 1957 void *freelist;
1958 1958
1959 freelist = page->freelist; 1959 freelist = page->freelist;
1960 slab_destroy_debugcheck(cachep, page); 1960 slab_destroy_debugcheck(cachep, page);
@@ -2520,11 +2520,11 @@ int __kmem_cache_shutdown(struct kmem_cache *cachep)
2520 * kmem_find_general_cachep till the initialization is complete. 2520 * kmem_find_general_cachep till the initialization is complete.
2521 * Hence we cannot have freelist_cache same as the original cache. 2521 * Hence we cannot have freelist_cache same as the original cache.
2522 */ 2522 */
2523static struct freelist *alloc_slabmgmt(struct kmem_cache *cachep, 2523static void *alloc_slabmgmt(struct kmem_cache *cachep,
2524 struct page *page, int colour_off, 2524 struct page *page, int colour_off,
2525 gfp_t local_flags, int nodeid) 2525 gfp_t local_flags, int nodeid)
2526{ 2526{
2527 struct freelist *freelist; 2527 void *freelist;
2528 void *addr = page_address(page); 2528 void *addr = page_address(page);
2529 2529
2530 if (OFF_SLAB(cachep)) { 2530 if (OFF_SLAB(cachep)) {
@@ -2646,7 +2646,7 @@ static void slab_put_obj(struct kmem_cache *cachep, struct page *page,
2646 * virtual address for kfree, ksize, and slab debugging. 2646 * virtual address for kfree, ksize, and slab debugging.
2647 */ 2647 */
2648static void slab_map_pages(struct kmem_cache *cache, struct page *page, 2648static void slab_map_pages(struct kmem_cache *cache, struct page *page,
2649 struct freelist *freelist) 2649 void *freelist)
2650{ 2650{
2651 page->slab_cache = cache; 2651 page->slab_cache = cache;
2652 page->freelist = freelist; 2652 page->freelist = freelist;
@@ -2659,7 +2659,7 @@ static void slab_map_pages(struct kmem_cache *cache, struct page *page,
2659static int cache_grow(struct kmem_cache *cachep, 2659static int cache_grow(struct kmem_cache *cachep,
2660 gfp_t flags, int nodeid, struct page *page) 2660 gfp_t flags, int nodeid, struct page *page)
2661{ 2661{
2662 struct freelist *freelist; 2662 void *freelist;
2663 size_t offset; 2663 size_t offset;
2664 gfp_t local_flags; 2664 gfp_t local_flags;
2665 struct kmem_cache_node *n; 2665 struct kmem_cache_node *n;