From: Ingo Molnar remove unused functions. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton --- kernel/lockdep.c | 75 --------------------------------------------- 1 file changed, 75 deletions(-) diff -puN kernel/lockdep.c~lockdep-core-cleanups-2 kernel/lockdep.c --- a/kernel/lockdep.c~lockdep-core-cleanups-2 +++ a/kernel/lockdep.c @@ -373,26 +373,6 @@ static void print_lock_name(struct lock_ printk("){%c%c%c%c}", c1, c2, c3, c4); } -#if 0 -static void print_lock_name_field(struct lock_class *class) -{ - const char *name; - char str[128]; - - name = class->name; - if (!name) { - name = __get_key_name(class->key, str); - printk("%30s", name); - } else { - printk("%30s", name); - if (class->name_version > 1) - printk("#%d", class->name_version); - if (class->subclass) - printk("/%d", class->subclass); - } -} -#endif /* 0 */ - static void print_lockdep_cache(struct lockdep_map *lock) { const char *name; @@ -490,61 +470,6 @@ static void print_lock_dependencies(stru } } -#if 0 - -/* - * printk all locks that are taken after this lock: - */ -static void print_flat_dependencies(struct lock_class *class) -{ - struct lock_list *entry; - int nr = 0; - - printk(" {\n"); - list_for_each_entry(entry, &class->locks_after, entry) { - nr++; - DEBUG_LOCKS_WARN_ON(!entry->class); - printk(" -> "); - print_lock_name_field(entry->class); - if (entry->class->subclass) - printk("/%d", entry->class->subclass); - print_stack_trace(&entry->trace, 2); - } - printk(" } [%d]", nr); -} - -static void print_lock_class(struct lock_class *class) -{ - print_lock_class_header(class, 0); - if (!list_empty(&class->locks_after)) - print_flat_dependencies(class); - printk("\n"); -} - -void print_lock_classes(void) -{ - struct list_head *head; - struct lock_class *class; - int i, nr; - - printk("lock classes:\n"); - - for (i = 0; i < CLASSHASH_SIZE; i++) { - head = classhash_table + i; - if (list_empty(head)) - continue; - printk("\nhash-list at %d:\n", i); - nr = 0; - list_for_each_entry(class, head, hash_entry) { - printk("\n"); - print_lock_class(class); - nr++; - } - } -} - -#endif /* 0 */ - /* * Add a new dependency to the head of the list: */ _