mm/dmapool: switch from strlcpy to strscpy
[linux-2.6-microblaze.git] / mm / vmalloc.c
index 4f5f8c9..d5f2a84 100644 (file)
@@ -3450,6 +3450,7 @@ void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms)
 }
 #endif /* CONFIG_SMP */
 
+#ifdef CONFIG_PRINTK
 bool vmalloc_dump_obj(void *object)
 {
        struct vm_struct *vm;
@@ -3462,6 +3463,7 @@ bool vmalloc_dump_obj(void *object)
                vm->nr_pages, (unsigned long)vm->addr, vm->caller);
        return true;
 }
+#endif
 
 #ifdef CONFIG_PROC_FS
 static void *s_start(struct seq_file *m, loff_t *pos)