Commit 5b3ef14e3e9d745a512d65fcb4ef9be541226d80

Authored by Adrian Bunk
Committed by Greg Kroah-Hartman
1 parent bde11d7942

[PATCH] Kobject: possible cleanups

This patch contains the following possible cleanups:
- #if 0 the following unused global function:
  - subsys_remove_file()
- remove the following unused EXPORT_SYMBOL's:
  - kset_find_obj
  - subsystem_init
- remove the following unused EXPORT_SYMBOL_GPL:
  - kobject_add_dir

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 2 changed files with 2 additions and 6 deletions Side-by-side Diff

include/linux/kobject.h
... ... @@ -257,7 +257,6 @@
257 257 };
258 258  
259 259 extern int subsys_create_file(struct subsystem * , struct subsys_attribute *);
260   -extern void subsys_remove_file(struct subsystem * , struct subsys_attribute *);
261 260  
262 261 #if defined(CONFIG_HOTPLUG)
263 262 void kobject_uevent(struct kobject *kobj, enum kobject_action action);
... ... @@ -422,7 +422,6 @@
422 422  
423 423 return k;
424 424 }
425   -EXPORT_SYMBOL_GPL(kobject_add_dir);
426 425  
427 426 /**
428 427 * kset_init - initialize a kset for use
... ... @@ -569,7 +568,7 @@
569 568 * @s: subsystem.
570 569 * @a: attribute desciptor.
571 570 */
572   -
  571 +#if 0
573 572 void subsys_remove_file(struct subsystem * s, struct subsys_attribute * a)
574 573 {
575 574 if (subsys_get(s)) {
... ... @@ -577,6 +576,7 @@
577 576 subsys_put(s);
578 577 }
579 578 }
  579 +#endif /* 0 */
580 580  
581 581 EXPORT_SYMBOL(kobject_init);
582 582 EXPORT_SYMBOL(kobject_register);
583 583  
584 584  
... ... @@ -588,11 +588,8 @@
588 588  
589 589 EXPORT_SYMBOL(kset_register);
590 590 EXPORT_SYMBOL(kset_unregister);
591   -EXPORT_SYMBOL(kset_find_obj);
592 591  
593   -EXPORT_SYMBOL(subsystem_init);
594 592 EXPORT_SYMBOL(subsystem_register);
595 593 EXPORT_SYMBOL(subsystem_unregister);
596 594 EXPORT_SYMBOL(subsys_create_file);
597   -EXPORT_SYMBOL(subsys_remove_file);