[PATCH 2/4] Export kobject_rename for pci_hotplug_core

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kenji Kaneshige <kaneshige.kenji@...>
Cc: Greg KH <gregkh@...>, Gary Hade <garyhade@...>, Kristen Carlson Accardi <kristen.c.accardi@...>, Matthew Wilcox <matthew@...>, <warthog19@...>, <rick.jones2@...>, <linux-kernel@...>, <linux-pci@...>, <linux-acpi@...>
Date: Tuesday, March 25, 2008 - 12:16 am

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>
---
 lib/kobject.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/kobject.c b/lib/kobject.c
index 0d03252..e2a9f65 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -456,6 +456,7 @@ out:
 
 	return error;
 }
+EXPORT_SYMBOL_GPL(kobject_rename);
 
 /**
  * kobject_move - move object to another parent
-- 
1.5.3.1.g1e61

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

Messages in current thread:
[PATCH 0/4, v11] PCI, ACPI: Physical PCI slot objects, Alex Chiang, (Tue Mar 25, 12:13 am)
[PATCH 4/4] ACPI PCI slot detection driver, Alex Chiang, (Tue Mar 25, 12:17 am)
Re: [PATCH 4/4] ACPI PCI slot detection driver, Kenji Kaneshige, (Tue Mar 25, 12:50 am)
[PATCH 3/4] Introduce pci_slot, Alex Chiang, (Tue Mar 25, 12:17 am)
Re: [PATCH 3/4] Introduce pci_slot, Andrew Morton, (Fri Mar 28, 6:39 am)
Re: [PATCH 3/4] Introduce pci_slot, Alex Chiang, (Fri Mar 28, 11:41 am)
Re: [PATCH 3/4] Introduce pci_slot, Andrew Morton, (Fri Mar 28, 1:56 pm)
Re: [PATCH 3/4] Introduce pci_slot, Kenji Kaneshige, (Tue Mar 25, 12:49 am)
[PATCH 2/4] Export kobject_rename for pci_hotplug_core, Alex Chiang, (Tue Mar 25, 12:16 am)
[PATCH 1/4] Construct one fakephp slot per pci slot, Alex Chiang, (Tue Mar 25, 12:15 am)