Skip to content

Commit 3abf024

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
x86: nuke a ton of unused exports
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent a72368d commit 3abf024

12 files changed

Lines changed: 1 addition & 22 deletions

File tree

‎arch/x86/kernel/cpu/perfctr-watchdog.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ void release_evntsel_nmi(unsigned int msr)
167167
clear_bit(counter, evntsel_nmi_owner);
168168
}
169169

170-
EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi);
171170
EXPORT_SYMBOL(avail_to_resrv_perfctr_nmi_bit);
172171
EXPORT_SYMBOL(reserve_perfctr_nmi);
173172
EXPORT_SYMBOL(release_perfctr_nmi);

‎arch/x86/kernel/e820_64.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ struct e820map e820;
3434
* PFN of last memory page.
3535
*/
3636
unsigned long end_pfn;
37-
EXPORT_SYMBOL(end_pfn);
3837

3938
/*
4039
* end_pfn only includes RAM, while end_pfn_map includes all e820 entries.

‎arch/x86/kernel/init_task.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ static struct files_struct init_files = INIT_FILES;
1515
static struct signal_struct init_signals = INIT_SIGNALS(init_signals);
1616
static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
1717
struct mm_struct init_mm = INIT_MM(init_mm);
18-
EXPORT_SYMBOL(init_mm);
1918

2019
/*
2120
* Initial thread structure.

‎arch/x86/kernel/pci-swiotlb_64.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <asm/dma.h>
1111

1212
int swiotlb __read_mostly;
13-
EXPORT_SYMBOL(swiotlb);
1413

1514
const struct dma_mapping_ops swiotlb_dma_ops = {
1615
.mapping_error = swiotlb_dma_mapping_error,

‎arch/x86/kernel/smpboot_32.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ EXPORT_SYMBOL(cpu_online_map);
8383

8484
cpumask_t cpu_callin_map;
8585
cpumask_t cpu_callout_map;
86-
EXPORT_SYMBOL(cpu_callout_map);
8786
cpumask_t cpu_possible_map;
8887
EXPORT_SYMBOL(cpu_possible_map);
8988
static cpumask_t smp_commenced_mask;

‎arch/x86/kernel/smpboot_64.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ EXPORT_SYMBOL(cpu_online_map);
7878
*/
7979
cpumask_t cpu_callin_map;
8080
cpumask_t cpu_callout_map;
81-
EXPORT_SYMBOL(cpu_callout_map);
82-
8381
cpumask_t cpu_possible_map;
8482
EXPORT_SYMBOL(cpu_possible_map);
8583

‎arch/x86/kernel/stacktrace.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ void save_stack_trace(struct stack_trace *trace)
6969
if (trace->nr_entries < trace->max_entries)
7070
trace->entries[trace->nr_entries++] = ULONG_MAX;
7171
}
72-
EXPORT_SYMBOL(save_stack_trace);
7372

7473
void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace)
7574
{

‎arch/x86/kernel/traps_64.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,6 @@ int is_valid_bugaddr(unsigned long rip)
461461
return ud2 == 0x0b0f;
462462
}
463463

464-
#ifdef CONFIG_BUG
465-
void out_of_line_bug(void)
466-
{
467-
BUG();
468-
}
469-
EXPORT_SYMBOL(out_of_line_bug);
470-
#endif
471-
472464
static raw_spinlock_t die_lock = __RAW_SPIN_LOCK_UNLOCKED;
473465
static int die_owner = -1;
474466
static unsigned int die_nest_count;

‎arch/x86/mach-voyager/voyager_smp.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ static cpumask_t smp_commenced_mask = CPU_MASK_NONE;
227227
/* This is for the new dynamic CPU boot code */
228228
cpumask_t cpu_callin_map = CPU_MASK_NONE;
229229
cpumask_t cpu_callout_map = CPU_MASK_NONE;
230-
EXPORT_SYMBOL(cpu_callout_map);
231230
cpumask_t cpu_possible_map = CPU_MASK_NONE;
232231
EXPORT_SYMBOL(cpu_possible_map);
233232

‎arch/x86/mm/numa_64.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ void __init init_cpu_to_node(void)
624624

625625
EXPORT_SYMBOL(cpu_to_node);
626626
EXPORT_SYMBOL(node_to_cpumask);
627-
EXPORT_SYMBOL(memnode);
628627
EXPORT_SYMBOL(node_data);
629628

630629
#ifdef CONFIG_DISCONTIGMEM

0 commit comments

Comments
 (0)