Cleanup EXPORT_SYMBOL usage
This cleans up the use of EXPORT_SYMBOL in ia64_ksyms.c by moving most of them to the place where the symbol is defined. Ideally, only symbols defined in assembler sources should remain here, but there are some cases where an EXPORT_SYMBOL is missing outside the arch/ia64 tree. I did not change them for now. Also, EXPORT_SYMBOL_NOVERS is obsolete.
Andreas.
arch/ia64/kernel/acpi.c +2 -0
@@ -32,6 +32,7 @@*/ #include <linux/config.h> +#include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/sched.h>
@@ -53,6 +54,7 @@#define PREFIX "ACPI: "void (*pm_idle) (void ); +EXPORT_SYMBOL (pm_idle);void (*pm_power_off) (void );unsigned char acpi_kbd_controller_present =1 ;
arch/ia64/kernel/efi.c +3 -0
@@ -19,6 +19,7 @@* Skip non-WB memory and ignore empty memory ranges. */ #include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/types.h>
@@ -37,6 +38,7 @@extern efi_status_t efi_call_phys (void *, ...);struct efi efi; +EXPORT_SYMBOL (efi);static efi_runtime_services_t *runtime;/*
@@ -48,6 +50,7 @@*/ #ifdef CONFIG_PROC_FS struct proc_dir_entry *efi_dir; +EXPORT_SYMBOL (efi_dir);#endif static unsigned long mem_limit = ~0UL ;
arch/ia64/kernel/ia64_ksyms.c +21 -111
194 lines not on this page · raw message
arch/ia64/kernel/irq.c +5 -0
@@ -223,6 +223,7 @@while (irq_descp (irq)->status &IRQ_INPROGRESS ) cpu_relax(); } +EXPORT_SYMBOL (synchronize_irq);#endif /*
@@ -364,6 +365,7 @@ }spin_unlock_irqrestore (&desc->lock, flags); } +EXPORT_SYMBOL (disable_irq_nosync);/** * disable_irq - disable an irq and wait for completion
@@ -386,6 +388,7 @@if (desc->action)synchronize_irq (irq); } +EXPORT_SYMBOL (disable_irq);/** * enable_irq - enable handling of an irq
@@ -424,6 +427,7 @@ }spin_unlock_irqrestore (&desc->lock, flags); } +EXPORT_SYMBOL (enable_irq);/* * do_IRQ handles all normal device IRQ's (the special
@@ -792,6 +796,7 @@return mask & val; } +EXPORT_SYMBOL (probe_irq_mask);/** * probe_irq_off - end an interrupt autodetect
arch/ia64/kernel/irq_ia64.c +2 -0
@@ -13,6 +13,7 @@*/ #include <linux/config.h> +#include <linux/module.h> #include <linux/jiffies.h> #include <linux/errno.h>
@@ -54,6 +55,7 @@0x2f ,0x20 ,0x2e ,0x2d ,0x2c ,0x2b ,0x2a ,0x29 ,0x28 ,0x27 ,0x26 ,0x25 ,0x24 ,0x23 ,0x22 ,0x21 }; +EXPORT_SYMBOL (isa_irq_to_vector_map);int ia64_alloc_vector (void )
arch/ia64/kernel/machvec.c +4 -0
@@ -1,4 +1,5 @@#include <linux/config.h> +#include <linux/module.h> #include <asm/system.h>
@@ -11,6 +12,7 @@#include <asm/page.h> struct ia64_machine_vector ia64_mv; +EXPORT_SYMBOL (ia64_mv);static struct ia64_machine_vector *lookup_machvec (const char *name)
@@ -45,9 +47,11 @@machvec_noop (void) { } +EXPORT_SYMBOL (machvec_noop);void machvec_memory_fence (void ) {mb (); } +EXPORT_SYMBOL (machvec_memory_fence);
arch/ia64/kernel/perfmon.c +6 -0
@@ -20,6 +20,7 @@*/ #include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/interrupt.h>
@@ -1259,6 +1260,7 @@spin_unlock (&pfm_buffer_fmt_lock);return ret; } +EXPORT_SYMBOL (pfm_register_buffer_fmt);int pfm_unregister_buffer_fmt (pfm_uuid_t uuid)
@@ -1282,6 +1284,7 @@return ret; } +EXPORT_SYMBOL (pfm_unregister_buffer_fmt);static int pfm_reserve_session (struct task_struct *task,int is_syswide,unsigned int cpu)
@@ -3421,6 +3424,7 @@return pfm_write_pmcs (ctx, req, nreq, regs); } +EXPORT_SYMBOL (pfm_mod_write_pmcs);long pfm_mod_read_pmds (struct task_struct *task,pfarg_reg_t *req,unsigned int nreq,struct pt_regs *regs)
@@ -3442,6 +3446,7 @@return pfm_read_pmds (ctx, req, nreq, regs); } +EXPORT_SYMBOL (pfm_mod_read_pmds);long pfm_mod_fast_read_pmds (struct task_struct *task,unsigned long mask[4 ],unsigned long *addr,struct pt_regs *regs)
@@ -3483,6 +3488,7 @@ }return 0 ; } +EXPORT_SYMBOL (pfm_mod_fast_read_pmds);/* * Only call this function when a process it trying to
arch/ia64/kernel/process.c +1 -0
@@ -598,6 +598,7 @@ }return tid; } +EXPORT_SYMBOL (kernel_thread);/* * Flush thread state. This is called when a thread does an execve().
arch/ia64/kernel/setup.c +5 -0
@@ -17,6 +17,7 @@* 06/24/99 W.Drummond added boot_cpu_data. */ #include <linux/config.h> +#include <linux/module.h> #include <linux/init.h> #include <linux/acpi.h>
@@ -56,6 +57,7 @@#ifdef CONFIG_SMP unsigned long __per_cpu_offset[NR_CPUS ]; +EXPORT_SYMBOL (__per_cpu_offset);#endif DEFINE_PER_CPU(struct cpuinfo_ia64, cpu_info);
@@ -67,7 +69,9 @@unsigned long ia64_max_cacheline_size;unsigned long ia64_iobase;/* virtual address for I/O accesses */ +EXPORT_SYMBOL (ia64_iobase);struct io_space io_space[MAX_IO_SPACES ]; +EXPORT_SYMBOL (io_space);unsigned int num_io_spaces;unsigned char aux_device_present =0xaa ;/* XXX remove this when legacy I/O is gone */
@@ -82,6 +86,7 @@* page-size of 2^64. */ unsigned long ia64_max_iommu_merge_mask = ~0UL ; +EXPORT_SYMBOL (ia64_max_iommu_merge_mask);#define COMMAND_LINE_SIZE 512
arch/ia64/kernel/smp.c +4 -0
@@ -22,6 +22,7 @@#include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/init.h>
@@ -210,6 +211,7 @@ {on_each_cpu ((void (*)(void *))local_flush_tlb_all,0 ,1 ,1 ); } +EXPORT_SYMBOL (smp_flush_tlb_all);void smp_flush_tlb_mm (struct mm_struct *mm)
@@ -283,6 +285,7 @@put_cpu ();return 0 ; } +EXPORT_SYMBOL (smp_call_function_single);/* * this function sends a 'generic call function' IPI to all other CPUs
@@ -337,6 +340,7 @@spin_unlock (&call_lock);return 0 ; } +EXPORT_SYMBOL (smp_call_function);void smp_do_timer (struct pt_regs *regs)
arch/ia64/kernel/smpboot.c +5 -0
@@ -16,6 +16,7 @@#include <linux/config.h> +#include <linux/module.h> #include <linux/acpi.h> #include <linux/bootmem.h> #include <linux/delay.h>
@@ -81,10 +82,13 @@/* Bitmask of currently online CPUs */ cpumask_t cpu_online_map; +EXPORT_SYMBOL (cpu_online_map);cpumask_t phys_cpu_present_map; +EXPORT_SYMBOL (phys_cpu_present_map);/* which logical CPU number maps to which CPU (physical APIC ID) */ volatile int ia64_cpu_to_sapicid[NR_CPUS ]; +EXPORT_SYMBOL (ia64_cpu_to_sapicid);static volatile cpumask_t cpu_callin_map;
@@ -467,6 +471,7 @@/* on which node is each logical CPU (one cacheline even for 64 CPUs) */ volatile u8 cpu_to_node_map[NR_CPUS] __cacheline_aligned; +EXPORT_SYMBOL (cpu_to_node_map);/* which logical CPUs are on which nodes */ volatile cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
arch/ia64/kernel/time.c +1 -0
@@ -39,6 +39,7 @@#ifdef CONFIG_IA64_DEBUG_IRQ unsigned long last_cli_ip; +EXPORT_SYMBOL (last_cli_ip);#endif
arch/ia64/kernel/unwind.c +9 -0
@@ -26,6 +26,7 @@* o if both the unw.lock spinlock and a script's read-write lock must be * acquired, then the read-write lock must be acquired first. */ +#include <linux/module.h> #include <linux/bootmem.h> #include <linux/elf.h> #include <linux/kernel.h>
@@ -392,6 +393,7 @@ }return 0 ; } +EXPORT_SYMBOL (unw_access_gr);int unw_access_br (struct unw_frame_info *info,int regnum,unsigned long *val,int write)
@@ -423,6 +425,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_br);int unw_access_fr (struct unw_frame_info *info,int regnum,struct ia64_fpreg *val,int write)
@@ -467,6 +470,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_fr);int unw_access_ar (struct unw_frame_info *info,int regnum,unsigned long *val,int write)
@@ -559,6 +563,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_ar);int unw_access_pr (struct unw_frame_info *info,unsigned long *val,int write)
@@ -575,6 +580,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_pr);/* Routines to manipulate the state stack. */
@@ -1897,6 +1903,7 @@ STAT(unw.stat.api.unwind_time += ia64_get_itc() - start; local_irq_restore(flags));return retval; } +EXPORT_SYMBOL (unw_unwind);int unw_unwind_to_user (struct unw_frame_info *info)
@@ -1917,6 +1924,7 @@UNW_DPRINT (0 ,"unwind.%s: failed to unwind to user-level (ip=0x%lx)\n" , __FUNCTION__, ip);return -1 ; } +EXPORT_SYMBOL (unw_unwind_to_user); static void init_frame_info (struct unw_frame_info *info, struct task_struct *t,
@@ -2014,6 +2022,7 @@UNW_DPRINT (1 ,"unwind.%s\n" , __FUNCTION__);unw_init_frame_info (info, t, sw); } +EXPORT_SYMBOL (unw_init_from_blocked_task); static void init_unwind_table (struct unw_table *table, const char *name, unsigned long segment_base,
arch/ia64/lib/io.c +4 -0
@@ -1,4 +1,5 @@#include <linux/config.h> +#include <linux/module.h> #include <linux/types.h> #include <asm/io.h>
@@ -17,6 +18,7 @@ from++; } } +EXPORT_SYMBOL (__ia64_memcpy_fromio);/* * Copy data from "real" memory space to IO memory space.
@@ -32,6 +34,7 @@ to++; } } +EXPORT_SYMBOL (__ia64_memcpy_toio);/* * "memset" on IO memory space.
@@ -48,6 +51,7 @@ dst++; } } +EXPORT_SYMBOL (__ia64_memset_c_io);#ifdef CONFIG_IA64_GENERIC
arch/ia64/mm/init.c +6 -4
@@ -43,15 +43,16 @@unsigned long MAX_DMA_ADDRESS =PAGE_OFFSET +0x100000000UL ;#ifdef CONFIG_VIRTUAL_MEM_MAP -unsigned long vmalloc_end =VMALLOC_END_INIT ; -struct page *vmem_map; - -EXPORT_SYMBOL (vmem_map); +unsigned long vmalloc_end =VMALLOC_END_INIT ; +EXPORT_SYMBOL (vmalloc_end); +struct page *vmem_map; +EXPORT_SYMBOL (vmem_map);#endif static int pgt_cache_water[2 ] = {25 ,50 };struct page *zero_page_memmap_ptr;/* map entry for zero page */ +EXPORT_SYMBOL (zero_page_memmap_ptr);void check_pgt_cache (void )
@@ -457,6 +458,7 @@return __get_user (byte, (char *)pfn_to_page (pfn)) =0 ; } +EXPORT_SYMBOL (ia64_pfn_valid);int find_largest_hole (u64 start,u64 end,void *arg)
arch/ia64/mm/tlb.c +3 -0
@@ -10,6 +10,7 @@* IPI based ptc implementation and A-step IPI implementation. */ #include <linux/config.h> +#include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/sched.h>
@@ -126,6 +127,7 @@local_irq_restore (flags);ia64_srlz_i ();/* srlz.i implies srlz.d */ } +EXPORT_SYMBOL (local_flush_tlb_all);void flush_tlb_range (struct vm_area_struct *vma,unsigned long start,unsigned long end)
@@ -162,6 +164,7 @@ia64_srlz_i ();/* srlz.i implies srlz.d */ } +EXPORT_SYMBOL (flush_tlb_range);void __init ia64_tlb_init (void )
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 5 lines · Andreas Schwab
This cleans up the use of
EXPORT_SYMBOLinia64_ksyms.cby moving most of them to the place where the symbol is defined. Ideally, only symbols defined in assembler sources should remain here, but there are some cases where anEXPORT_SYMBOLis missing outside thearch/ia64tree. I did not change them for now. Also,EXPORT_SYMBOL_NOVERSis obsolete.
There was a compilation failure for certain configurations, here is a new patch.
Andreas.
arch/ia64/kernel/acpi.c +2 -0
@@ -32,6 +32,7 @@*/ #include <linux/config.h> +#include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/sched.h>
@@ -53,6 +54,7 @@#define PREFIX "ACPI: "void (*pm_idle) (void ); +EXPORT_SYMBOL (pm_idle);void (*pm_power_off) (void );unsigned char acpi_kbd_controller_present =1 ;
arch/ia64/kernel/efi.c +3 -0
@@ -19,6 +19,7 @@* Skip non-WB memory and ignore empty memory ranges. */ #include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/types.h>
@@ -37,6 +38,7 @@extern efi_status_t efi_call_phys (void *, ...);struct efi efi; +EXPORT_SYMBOL (efi);static efi_runtime_services_t *runtime;/*
@@ -48,6 +50,7 @@*/ #ifdef CONFIG_PROC_FS struct proc_dir_entry *efi_dir; +EXPORT_SYMBOL (efi_dir);#endif static unsigned long mem_limit = ~0UL ;
arch/ia64/kernel/ia64_ksyms.c +21 -111
194 lines not on this page · raw message
arch/ia64/kernel/irq.c +5 -0
@@ -223,6 +223,7 @@while (irq_descp (irq)->status &IRQ_INPROGRESS ) cpu_relax(); } +EXPORT_SYMBOL (synchronize_irq);#endif /*
@@ -364,6 +365,7 @@ }spin_unlock_irqrestore (&desc->lock, flags); } +EXPORT_SYMBOL (disable_irq_nosync);/** * disable_irq - disable an irq and wait for completion
@@ -386,6 +388,7 @@if (desc->action)synchronize_irq (irq); } +EXPORT_SYMBOL (disable_irq);/** * enable_irq - enable handling of an irq
@@ -424,6 +427,7 @@ }spin_unlock_irqrestore (&desc->lock, flags); } +EXPORT_SYMBOL (enable_irq);/* * do_IRQ handles all normal device IRQ's (the special
@@ -792,6 +796,7 @@return mask & val; } +EXPORT_SYMBOL (probe_irq_mask);/** * probe_irq_off - end an interrupt autodetect
arch/ia64/kernel/irq_ia64.c +2 -0
@@ -13,6 +13,7 @@*/ #include <linux/config.h> +#include <linux/module.h> #include <linux/jiffies.h> #include <linux/errno.h>
@@ -54,6 +55,7 @@0x2f ,0x20 ,0x2e ,0x2d ,0x2c ,0x2b ,0x2a ,0x29 ,0x28 ,0x27 ,0x26 ,0x25 ,0x24 ,0x23 ,0x22 ,0x21 }; +EXPORT_SYMBOL (isa_irq_to_vector_map);int ia64_alloc_vector (void )
arch/ia64/kernel/machvec.c +4 -0
@@ -1,4 +1,5 @@#include <linux/config.h> +#include <linux/module.h> #include <asm/system.h>
@@ -11,6 +12,7 @@#include <asm/page.h> struct ia64_machine_vector ia64_mv; +EXPORT_SYMBOL (ia64_mv);static struct ia64_machine_vector *lookup_machvec (const char *name)
@@ -45,9 +47,11 @@machvec_noop (void) { } +EXPORT_SYMBOL (machvec_noop);void machvec_memory_fence (void ) {mb (); } +EXPORT_SYMBOL (machvec_memory_fence);
arch/ia64/kernel/perfmon.c +6 -0
@@ -20,6 +20,7 @@*/ #include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/interrupt.h>
@@ -1259,6 +1260,7 @@spin_unlock (&pfm_buffer_fmt_lock);return ret; } +EXPORT_SYMBOL (pfm_register_buffer_fmt);int pfm_unregister_buffer_fmt (pfm_uuid_t uuid)
@@ -1282,6 +1284,7 @@return ret; } +EXPORT_SYMBOL (pfm_unregister_buffer_fmt);static int pfm_reserve_session (struct task_struct *task,int is_syswide,unsigned int cpu)
@@ -3421,6 +3424,7 @@return pfm_write_pmcs (ctx, req, nreq, regs); } +EXPORT_SYMBOL (pfm_mod_write_pmcs);long pfm_mod_read_pmds (struct task_struct *task,pfarg_reg_t *req,unsigned int nreq,struct pt_regs *regs)
@@ -3442,6 +3446,7 @@return pfm_read_pmds (ctx, req, nreq, regs); } +EXPORT_SYMBOL (pfm_mod_read_pmds);long pfm_mod_fast_read_pmds (struct task_struct *task,unsigned long mask[4 ],unsigned long *addr,struct pt_regs *regs)
@@ -3483,6 +3488,7 @@ }return 0 ; } +EXPORT_SYMBOL (pfm_mod_fast_read_pmds);/* * Only call this function when a process it trying to
arch/ia64/kernel/process.c +1 -0
@@ -598,6 +598,7 @@ }return tid; } +EXPORT_SYMBOL (kernel_thread);/* * Flush thread state. This is called when a thread does an execve().
arch/ia64/kernel/setup.c +5 -0
@@ -17,6 +17,7 @@* 06/24/99 W.Drummond added boot_cpu_data. */ #include <linux/config.h> +#include <linux/module.h> #include <linux/init.h> #include <linux/acpi.h>
@@ -56,6 +57,7 @@#ifdef CONFIG_SMP unsigned long __per_cpu_offset[NR_CPUS ]; +EXPORT_SYMBOL (__per_cpu_offset);#endif DEFINE_PER_CPU(struct cpuinfo_ia64, cpu_info);
@@ -67,7 +69,9 @@unsigned long ia64_max_cacheline_size;unsigned long ia64_iobase;/* virtual address for I/O accesses */ +EXPORT_SYMBOL (ia64_iobase);struct io_space io_space[MAX_IO_SPACES ]; +EXPORT_SYMBOL (io_space);unsigned int num_io_spaces;unsigned char aux_device_present =0xaa ;/* XXX remove this when legacy I/O is gone */
@@ -82,6 +86,7 @@* page-size of 2^64. */ unsigned long ia64_max_iommu_merge_mask = ~0UL ; +EXPORT_SYMBOL (ia64_max_iommu_merge_mask);#define COMMAND_LINE_SIZE 512
arch/ia64/kernel/smp.c +4 -0
@@ -22,6 +22,7 @@#include <linux/config.h> +#include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/init.h>
@@ -210,6 +211,7 @@ {on_each_cpu ((void (*)(void *))local_flush_tlb_all,0 ,1 ,1 ); } +EXPORT_SYMBOL (smp_flush_tlb_all);void smp_flush_tlb_mm (struct mm_struct *mm)
@@ -283,6 +285,7 @@put_cpu ();return 0 ; } +EXPORT_SYMBOL (smp_call_function_single);/* * this function sends a 'generic call function' IPI to all other CPUs
@@ -337,6 +340,7 @@spin_unlock (&call_lock);return 0 ; } +EXPORT_SYMBOL (smp_call_function);void smp_do_timer (struct pt_regs *regs)
arch/ia64/kernel/smpboot.c +5 -0
@@ -16,6 +16,7 @@#include <linux/config.h> +#include <linux/module.h> #include <linux/acpi.h> #include <linux/bootmem.h> #include <linux/delay.h>
@@ -81,10 +82,13 @@/* Bitmask of currently online CPUs */ cpumask_t cpu_online_map; +EXPORT_SYMBOL (cpu_online_map);cpumask_t phys_cpu_present_map; +EXPORT_SYMBOL (phys_cpu_present_map);/* which logical CPU number maps to which CPU (physical APIC ID) */ volatile int ia64_cpu_to_sapicid[NR_CPUS ]; +EXPORT_SYMBOL (ia64_cpu_to_sapicid);static volatile cpumask_t cpu_callin_map;
@@ -467,6 +471,7 @@/* on which node is each logical CPU (one cacheline even for 64 CPUs) */ volatile u8 cpu_to_node_map[NR_CPUS] __cacheline_aligned; +EXPORT_SYMBOL (cpu_to_node_map);/* which logical CPUs are on which nodes */ volatile cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
arch/ia64/kernel/time.c +1 -0
@@ -39,6 +39,7 @@#ifdef CONFIG_IA64_DEBUG_IRQ unsigned long last_cli_ip; +EXPORT_SYMBOL (last_cli_ip);#endif
arch/ia64/kernel/unwind.c +9 -0
@@ -26,6 +26,7 @@* o if both the unw.lock spinlock and a script's read-write lock must be * acquired, then the read-write lock must be acquired first. */ +#include <linux/module.h> #include <linux/bootmem.h> #include <linux/elf.h> #include <linux/kernel.h>
@@ -392,6 +393,7 @@ }return 0 ; } +EXPORT_SYMBOL (unw_access_gr);int unw_access_br (struct unw_frame_info *info,int regnum,unsigned long *val,int write)
@@ -423,6 +425,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_br);int unw_access_fr (struct unw_frame_info *info,int regnum,struct ia64_fpreg *val,int write)
@@ -467,6 +470,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_fr);int unw_access_ar (struct unw_frame_info *info,int regnum,unsigned long *val,int write)
@@ -559,6 +563,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_ar);int unw_access_pr (struct unw_frame_info *info,unsigned long *val,int write)
@@ -575,6 +580,7 @@ *val = *addr;return 0 ; } +EXPORT_SYMBOL (unw_access_pr);/* Routines to manipulate the state stack. */
@@ -1897,6 +1903,7 @@ STAT(unw.stat.api.unwind_time += ia64_get_itc() - start; local_irq_restore(flags));return retval; } +EXPORT_SYMBOL (unw_unwind);int unw_unwind_to_user (struct unw_frame_info *info)
@@ -1917,6 +1924,7 @@UNW_DPRINT (0 ,"unwind.%s: failed to unwind to user-level (ip=0x%lx)\n" , __FUNCTION__, ip);return -1 ; } +EXPORT_SYMBOL (unw_unwind_to_user); static void init_frame_info (struct unw_frame_info *info, struct task_struct *t,
@@ -2014,6 +2022,7 @@UNW_DPRINT (1 ,"unwind.%s\n" , __FUNCTION__);unw_init_frame_info (info, t, sw); } +EXPORT_SYMBOL (unw_init_from_blocked_task); static void init_unwind_table (struct unw_table *table, const char *name, unsigned long segment_base,
arch/ia64/lib/io.c +4 -0
@@ -1,4 +1,5 @@#include <linux/config.h> +#include <linux/module.h> #include <linux/types.h> #include <asm/io.h>
@@ -17,6 +18,7 @@ from++; } } +EXPORT_SYMBOL (__ia64_memcpy_fromio);/* * Copy data from "real" memory space to IO memory space.
@@ -32,6 +34,7 @@ to++; } } +EXPORT_SYMBOL (__ia64_memcpy_toio);/* * "memset" on IO memory space.
@@ -48,6 +51,7 @@ dst++; } } +EXPORT_SYMBOL (__ia64_memset_c_io);#ifdef CONFIG_IA64_GENERIC
arch/ia64/mm/init.c +6 -4
@@ -43,15 +43,16 @@unsigned long MAX_DMA_ADDRESS =PAGE_OFFSET +0x100000000UL ;#ifdef CONFIG_VIRTUAL_MEM_MAP -unsigned long vmalloc_end =VMALLOC_END_INIT ; -struct page *vmem_map; - -EXPORT_SYMBOL (vmem_map); +unsigned long vmalloc_end =VMALLOC_END_INIT ; +EXPORT_SYMBOL (vmalloc_end); +struct page *vmem_map; +EXPORT_SYMBOL (vmem_map);#endif static int pgt_cache_water[2 ] = {25 ,50 };struct page *zero_page_memmap_ptr;/* map entry for zero page */ +EXPORT_SYMBOL (zero_page_memmap_ptr);void check_pgt_cache (void )
@@ -457,6 +458,7 @@return __get_user (byte, (char *)pfn_to_page (pfn)) =0 ; } +EXPORT_SYMBOL (ia64_pfn_valid);int find_largest_hole (u64 start,u64 end,void *arg)
arch/ia64/mm/tlb.c +3 -0
@@ -10,6 +10,7 @@* IPI based ptc implementation and A-step IPI implementation. */ #include <linux/config.h> +#include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/sched.h>
@@ -126,6 +127,7 @@local_irq_restore (flags);ia64_srlz_i ();/* srlz.i implies srlz.d */ } +EXPORT_SYMBOL (local_flush_tlb_all);void flush_tlb_range (struct vm_area_struct *vma,unsigned long start,unsigned long end)
@@ -162,6 +164,7 @@ia64_srlz_i ();/* srlz.i implies srlz.d */ } +EXPORT_SYMBOL (flush_tlb_range);void __init ia64_tlb_init (void )
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 6 lines · Andreas> Andreas Schwab <[email protected]> writes:
Quoted 6 lines
This cleans up the use of
EXPORT_SYMBOLinia64_ksyms.cby moving most of them to the place where the symbol is defined. Ideally, only symbols defined in assembler sources should remain here, but there are some cases where anEXPORT_SYMBOLis missing outside thearch/ia64tree. I did not change them for now. Also,EXPORT_SYMBOL_NOVERSis obsolete.
Andreas> There was a compilation failure for certain configurations, Andreas> here is a new patch.
Looks good to me. It's in the to-linus-2.5 tree now.
Thanks!
--david