From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles Coffing" Subject: EXPORT_SYMBOL Date: Thu, 05 Aug 2004 14:14:31 -0600 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org I built 2.6.7-xen0 with modular drivers, but I couldn't get any modules to load because the following symbols weren't exported: evtchn_do_upcall HYPERVISOR_shared_info phys_to_machine_mapping Here's a patch: diff -ru xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c --- xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c 2004-08-04 20:56:53.000000000 -0600 +++ xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c 2004-08-05 10:58:02.000000000 -0600 @@ -137,8 +137,9 @@ * page as soon as fixmap is up and running. */ shared_info_t *HYPERVISOR_shared_info = (shared_info_t *)empty_zero_page; - +EXPORT_SYMBOL(HYPERVISOR_shared_info); unsigned long *phys_to_machine_mapping; +EXPORT_SYMBOL(phys_to_machine_mapping); multicall_entry_t multicall_list[8]; int nr_multicall_ents = 0; diff -ru xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c --- xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c 2004-08-04 20:56:54.000000000 -0600 +++ xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c 2004-08-05 10:58:45.000000000 -0600 @@ -7,6 +7,7 @@ */ #include +#include #include #include #include @@ -81,7 +82,7 @@ local_irq_restore(flags); } - +EXPORT_SYMBOL(evtchn_do_upcall); static int find_unbound_irq(void) { ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com