]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
mm, slab: Build fix for recent kmem_cache changes
authorThierry Reding <thierry.reding@avionic-design.de>
Fri, 22 Jun 2012 17:42:49 +0000 (19:42 +0200)
committerPekka Enberg <penberg@kernel.org>
Mon, 2 Jul 2012 10:42:18 +0000 (13:42 +0300)
Commit 3b0efdf ("mm, sl[aou]b: Extract common fields from struct
kmem_cache") renamed the kmem_cache structure's "next" field to "list"
but forgot to update one instance in leaks_show().

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab.c

index bb79652531590e35774a32f253d202ab6a40b39a..d95ad4c37f6494225d5ca88b8ca88a2c0727a99e 100644 (file)
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -4533,7 +4533,7 @@ static void show_symbol(struct seq_file *m, unsigned long address)
 
 static int leaks_show(struct seq_file *m, void *p)
 {
-       struct kmem_cache *cachep = list_entry(p, struct kmem_cache, next);
+       struct kmem_cache *cachep = list_entry(p, struct kmem_cache, list);
        struct slab *slabp;
        struct kmem_list3 *l3;
        const char *name;