From: Kenji Kaneshige Export kobject_rename() to fix the following link error. This happens when pci_hotplug_core driver is compiled as a kernel module. ERROR: "kobject_rename" [drivers/pci/hotplug/pci_hotplug.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 make: *** Waiting for unfinished jobs.... Signed-off-by: Kenji Kaneshige Acked-by: Alex Chiang Cc: Greg KH Cc: Kristen Carlson Accardi Cc: Len Brown Signed-off-by: Andrew Morton --- lib/kobject.c | 1 + 1 file changed, 1 insertion(+) diff -puN lib/kobject.c~pci-hotplug-export-kobject_rename-for-pci_hotplug_core lib/kobject.c --- a/lib/kobject.c~pci-hotplug-export-kobject_rename-for-pci_hotplug_core +++ a/lib/kobject.c @@ -503,6 +503,7 @@ out: return error; } +EXPORT_SYMBOL_GPL(kobject_rename); /** * kobject_move - move object to another parent _