May I know who to submit it to? I have made the patch. Compiled, and tested. $ cat /proc/kallsyms | grep kobject c01dbcc0 T kobject_init c01dbd80 T kobject_add c01dbea0 T kobject_register c01dbf00 T kobject_set_name c01dbfe0 t kobject_rename c01dc030 T kobject_del [...] Notice the small, and big T. http://www.anomalistic.org/patches/export_kobject_add_and_del-2.6.1-mm1-kj1.patch diff -Naur -X /home/amnesia/w/dontdiff 2.6.1-mm1-kj1-BAK/lib/kobject.c 2.6.1-mm1-kj1/lib/kobject.c --- 2.6.1-mm1-kj1-BAK/lib/kobject.c 2004-01-10 08:43:21.000000000 +0800 +++ 2.6.1-mm1-kj1/lib/kobject.c 2004-01-10 08:44:55.000000000 +0800 @@ -638,6 +638,8 @@ EXPORT_SYMBOL(kobject_unregister); EXPORT_SYMBOL(kobject_get); EXPORT_SYMBOL(kobject_put); +EXPORT_SYMBOL(kobject_add); +EXPORT_SYMBOL(kobject_del); EXPORT_SYMBOL(kset_register); EXPORT_SYMBOL(kset_unregister); <quote sender="Greg KH"> > On Fri, Jan 09, 2004 at 01:56:18PM +0100, Frank.A.Uepping@t-online.de wrote: > > When I compile my module I got these messages: > > *** Warning: "kobject_del" [drivers/isdn/capi/rcapidrv.ko] undefined! > > *** Warning: "kobject_add" [drivers/isdn/capi/rcapidrv.ko] undefined! > > And insmod'ing my module fails, because of the undefined symbols. > > These symbols are not currently exported. Care to make a patch and > submit it to make them so? > > thanks, > > greg k-h > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Eugene TEO <eugeneteo@eugeneteo.net> <http://www.anomalistic.org/> 1024D/14A0DDE5 print D851 4574 E357 469C D308 A01E 7321 A38A 14A0 DDE5 main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); }
Attachment:
signature.asc
Description: Digital signature