Commit 3abf024d authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Ingo Molnar

x86: nuke a ton of unused exports

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent a72368dd
...@@ -167,7 +167,6 @@ void release_evntsel_nmi(unsigned int msr) ...@@ -167,7 +167,6 @@ void release_evntsel_nmi(unsigned int msr)
clear_bit(counter, evntsel_nmi_owner); clear_bit(counter, evntsel_nmi_owner);
} }
EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi);
EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi_bit); EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi_bit);
EXPORT_SYMBOL(reserve_perfctr_nmi); EXPORT_SYMBOL(reserve_perfctr_nmi);
EXPORT_SYMBOL(release_perfctr_nmi); EXPORT_SYMBOL(release_perfctr_nmi);
......
...@@ -34,7 +34,6 @@ struct e820map e820; ...@@ -34,7 +34,6 @@ struct e820map e820;
* PFN of last memory page. * PFN of last memory page.
*/ */
unsigned long end_pfn; unsigned long end_pfn;
EXPORT_SYMBOL(end_pfn);
/* /*
* end_pfn only includes RAM, while end_pfn_map includes all e820 entries. * end_pfn only includes RAM, while end_pfn_map includes all e820 entries.
......
...@@ -15,7 +15,6 @@ static struct files_struct init_files = INIT_FILES; ...@@ -15,7 +15,6 @@ static struct files_struct init_files = INIT_FILES;
static struct signal_struct init_signals = INIT_SIGNALS(init_signals); static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
struct mm_struct init_mm = INIT_MM(init_mm); struct mm_struct init_mm = INIT_MM(init_mm);
EXPORT_SYMBOL(init_mm);
/* /*
* Initial thread structure. * Initial thread structure.
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <asm/dma.h> #include <asm/dma.h>
int swiotlb __read_mostly; int swiotlb __read_mostly;
EXPORT_SYMBOL(swiotlb);
const struct dma_mapping_ops swiotlb_dma_ops = { const struct dma_mapping_ops swiotlb_dma_ops = {
.mapping_error = swiotlb_dma_mapping_error, .mapping_error = swiotlb_dma_mapping_error,
......
...@@ -83,7 +83,6 @@ EXPORT_SYMBOL(cpu_online_map); ...@@ -83,7 +83,6 @@ EXPORT_SYMBOL(cpu_online_map);
cpumask_t cpu_callin_map; cpumask_t cpu_callin_map;
cpumask_t cpu_callout_map; cpumask_t cpu_callout_map;
EXPORT_SYMBOL(cpu_callout_map);
cpumask_t cpu_possible_map; cpumask_t cpu_possible_map;
EXPORT_SYMBOL(cpu_possible_map); EXPORT_SYMBOL(cpu_possible_map);
static cpumask_t smp_commenced_mask; static cpumask_t smp_commenced_mask;
......
...@@ -78,8 +78,6 @@ EXPORT_SYMBOL(cpu_online_map); ...@@ -78,8 +78,6 @@ EXPORT_SYMBOL(cpu_online_map);
*/ */
cpumask_t cpu_callin_map; cpumask_t cpu_callin_map;
cpumask_t cpu_callout_map; cpumask_t cpu_callout_map;
EXPORT_SYMBOL(cpu_callout_map);
cpumask_t cpu_possible_map; cpumask_t cpu_possible_map;
EXPORT_SYMBOL(cpu_possible_map); EXPORT_SYMBOL(cpu_possible_map);
......
...@@ -69,7 +69,6 @@ void save_stack_trace(struct stack_trace *trace) ...@@ -69,7 +69,6 @@ void save_stack_trace(struct stack_trace *trace)
if (trace->nr_entries < trace->max_entries) if (trace->nr_entries < trace->max_entries)
trace->entries[trace->nr_entries++] = ULONG_MAX; trace->entries[trace->nr_entries++] = ULONG_MAX;
} }
EXPORT_SYMBOL(save_stack_trace);
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
{ {
......
...@@ -461,14 +461,6 @@ int is_valid_bugaddr(unsigned long rip) ...@@ -461,14 +461,6 @@ int is_valid_bugaddr(unsigned long rip)
return ud2 == 0x0b0f; return ud2 == 0x0b0f;
} }
#ifdef CONFIG_BUG
void out_of_line_bug(void)
{
BUG();
}
EXPORT_SYMBOL(out_of_line_bug);
#endif
static raw_spinlock_t die_lock = __RAW_SPIN_LOCK_UNLOCKED; static raw_spinlock_t die_lock = __RAW_SPIN_LOCK_UNLOCKED;
static int die_owner = -1; static int die_owner = -1;
static unsigned int die_nest_count; static unsigned int die_nest_count;
......
...@@ -227,7 +227,6 @@ static cpumask_t smp_commenced_mask = CPU_MASK_NONE; ...@@ -227,7 +227,6 @@ static cpumask_t smp_commenced_mask = CPU_MASK_NONE;
/* This is for the new dynamic CPU boot code */ /* This is for the new dynamic CPU boot code */
cpumask_t cpu_callin_map = CPU_MASK_NONE; cpumask_t cpu_callin_map = CPU_MASK_NONE;
cpumask_t cpu_callout_map = CPU_MASK_NONE; cpumask_t cpu_callout_map = CPU_MASK_NONE;
EXPORT_SYMBOL(cpu_callout_map);
cpumask_t cpu_possible_map = CPU_MASK_NONE; cpumask_t cpu_possible_map = CPU_MASK_NONE;
EXPORT_SYMBOL(cpu_possible_map); EXPORT_SYMBOL(cpu_possible_map);
......
...@@ -624,7 +624,6 @@ void __init init_cpu_to_node(void) ...@@ -624,7 +624,6 @@ void __init init_cpu_to_node(void)
EXPORT_SYMBOL(cpu_to_node); EXPORT_SYMBOL(cpu_to_node);
EXPORT_SYMBOL(node_to_cpumask); EXPORT_SYMBOL(node_to_cpumask);
EXPORT_SYMBOL(memnode);
EXPORT_SYMBOL(node_data); EXPORT_SYMBOL(node_data);
#ifdef CONFIG_DISCONTIGMEM #ifdef CONFIG_DISCONTIGMEM
......
...@@ -33,9 +33,6 @@ ...@@ -33,9 +33,6 @@
} while(0) } while(0)
#endif #endif
void out_of_line_bug(void);
#else /* CONFIG_BUG */
static inline void out_of_line_bug(void) { }
#endif /* !CONFIG_BUG */ #endif /* !CONFIG_BUG */
#include <asm-generic/bug.h> #include <asm-generic/bug.h>
......
...@@ -49,7 +49,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, ...@@ -49,7 +49,7 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
else { else {
write_pda(mmu_state, TLBSTATE_OK); write_pda(mmu_state, TLBSTATE_OK);
if (read_pda(active_mm) != next) if (read_pda(active_mm) != next)
out_of_line_bug(); BUG();
if (!cpu_test_and_set(cpu, next->cpu_vm_mask)) { if (!cpu_test_and_set(cpu, next->cpu_vm_mask)) {
/* We were in lazy tlb mode and leave_mm disabled /* We were in lazy tlb mode and leave_mm disabled
* tlb flush IPI delivery. We must reload CR3 * tlb flush IPI delivery. We must reload CR3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment