[PATCH] kobject: Export kobject_rename for pci_hotplug_core

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <jbarnes@...>, Benjamin Herrenschmidt <benh@...>, <kaneshige.kenji@...>, Matthew Wilcox <matthew@...>, Andrew Morton <akpm@...>, <kristen.c.accardi@...>, <greg@...>, <lenb@...>, <pbadari@...>, <linux-pci@...>, <pcihpd-discuss@...>, <linux-kernel@...>
Date: Wednesday, June 4, 2008 - 4:16 pm

From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>

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 <kaneshige.kenji@jp.fujitsu.com>
Acked-by: Alex Chiang <achiang@hp.com>
Cc: Greg KH <greg@kroah.com>
Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
 lib/kobject.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/kobject.c b/lib/kobject.c
index 718e510..dcade05 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -439,6 +439,7 @@ out:
 
 	return error;
 }
+EXPORT_SYMBOL_GPL(kobject_rename);
 
 /**
  * kobject_move - move object to another parent
-- 
1.5.3.1.1.g1e61

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Mon Jun 9, 4:08 am)
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Mon Jun 9, 11:04 pm)
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Tue Jun 10, 9:48 pm)
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Wed Jun 11, 2:29 am)
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Mon Jun 9, 11:12 pm)
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Wed Jun 4, 10:32 pm)
Re: [PATCH 0/4, v14] PCI, ACPI: Physical PCI slot objects, Kenji Kaneshige, (Wed Jun 4, 11:20 pm)
[PATCH] ACPI: PCI slot detection driver, Alex Chiang, (Wed Jun 4, 4:18 pm)
Re: [PATCH] ACPI: PCI slot detection driver, Len Brown, (Tue Jun 10, 2:24 pm)
Re: [PATCH] ACPI: PCI slot detection driver, Alex Chiang, (Tue Jun 10, 5:17 pm)
[PATCH] PCI: Introduce pci_slot, Alex Chiang, (Wed Jun 4, 4:16 pm)
[PATCH] kobject: Export kobject_rename for pci_hotplug_core, Alex Chiang, (Wed Jun 4, 4:16 pm)
Re: [PATCH] kobject: Export kobject_rename for pci_hotplug_c..., Benjamin Herrenschmidt, (Fri Jun 6, 12:07 am)
Re: [PATCH] kobject: Export kobject_rename for pci_hotplug_c..., Benjamin Herrenschmidt, (Fri Jun 6, 7:20 pm)