[lkml]   [2005]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: 2.6.15-rc2-mm1
Andrew Morton wrote:

Hi Andrew,

I had this compilation error :

LD .tmp_vmlinux1
drivers/built-in.o: In function `do_uevent':
lockspace.c:(.text+0x148ae7): undefined reference to `kobject_hotplug'
lockspace.c:(.text+0x148b9e): undefined reference to `kobject_hotplug'

DLM was still using kobject_hotplug, which seems to have been removed in
-mm. Brice kindly indicated me how to fix this, in exchange for half a
signed-off, so please see the attached patch. I grep'd the whole source
and did not find any other reference to kobject_hotplug.


Signed-off-by: Alexandre Buisse <>
Signed-off-by: Brice Goglin <>
--- drivers/dlm/lockspace.c.old 2005-11-24 19:32:11.000000000 +0100
+++ drivers/dlm/lockspace.c 2005-11-24 19:39:59.000000000 +0100
@@ -157,9 +157,9 @@
int error;

if (in)
- kobject_hotplug(&ls->ls_kobj, KOBJ_ONLINE);
+ kobject_uevent(&ls->ls_kobj, KOBJ_ONLINE);
- kobject_hotplug(&ls->ls_kobj, KOBJ_OFFLINE);
+ kobject_uevent(&ls->ls_kobj, KOBJ_OFFLINE);

error = wait_event_interruptible(ls->ls_uevent_wait,
test_and_clear_bit(LSFL_UEVENT_WAIT, &ls->ls_flags));
 \ /
  Last update: 2005-11-24 19:51    [from the cache]
©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site