SLUB: Use __print_symbol instead of kallsyms_lookup SLUB contains a complicated section with #ifdef CONFIG_KALLSYSM and yadda dadda. Remove that and replace with __print_symbol. Signed-off-by: Christoph Lameter Index: linux-2.6.21-rc6/mm/slub.c =================================================================== --- linux-2.6.21-rc6.orig/mm/slub.c 2007-04-10 19:21:29.000000000 -0700 +++ linux-2.6.21-rc6/mm/slub.c 2007-04-10 19:21:51.000000000 -0700 @@ -290,27 +290,11 @@ static void init_tracking(struct kmem_ca static void print_track(const char *s, struct track *t) { -#ifdef CONFIG_KALLSYMS - char *modname; - const char *name; - unsigned long offset, size; - char namebuf[KSYM_NAME_LEN + 1]; -#endif - if (!t->addr) return; -#ifdef CONFIG_KALLSYMS - name = kallsyms_lookup((unsigned long)t->addr, &size, &offset, - &modname, namebuf); - - if (name) { - printk(KERN_ERR "%s: %s+%#lx/%#lx", s, name, offset, size); - if (modname) - printk(" [%s]", modname); - } else -#endif - printk(KERN_ERR "%s: 0x%p", s, t->addr); + printk(KERN_ERR "%s: ", s); + __print_symbol("%s", (unsigned long)t->addr); printk(" jiffies_ago=%lu cpu=%u pid=%d\n", jiffies - t->when, t->cpu, t->pid); }