Skip to contentSkip to conversation

x86: export 'leave_mm' symbol

PATCH In review Miguel Botón 3 participants 3 messages Dec 28, 2007 – Dec 30, 2007 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: export 'leave_mm' symbol

This patch fixes a linking error if CONFIG_ACPI_PROCESSOR=m (this error occurs in the 'mm' branch of linux-2.6-x86.git).

We need to export the 'leave_mm' symbol so it can be accessible for the ACPI processor module.

arch/x86/kernel/smp_32.c +1 -0
index 596d002..dc0cde9 100644
@@ -263,6 +263,7 @@ void leave_mm(int cpu)
 	cpu_clear(cpu, per_cpu(cpu_tlbstate, cpu).active_mm->cpu_vm_mask);
 	load_cr3(swapper_pg_dir);
 }
+EXPORT_SYMBOL(leave_mm);
 
 /*
  *
arch/x86/kernel/smp_64.c +1 -0
index 1334afe..2fd74b0 100644
@@ -76,6 +76,7 @@ void leave_mm(int cpu)
 	cpu_clear(cpu, read_pda(active_mm)->cpu_vm_mask);
 	load_cr3(swapper_pg_dir);
 }
+EXPORT_SYMBOL(leave_mm);
 
 /*
  *
Signature · 1 line
	Miguel Botón
Acked-by on v1 1/1
#1 lore raw
Quoted 44 lines

-----Original Message-----
From: Miguel Botón [mailto:[email protected]]
Sent: Friday, December 28, 2007 7:58 AM
To: Linux Kernel Mailing List
Cc: Ingo Molnar; Thomas Gleixner; Pallipadi, Venkatesh
Subject: [PATCH] x86: export 'leave_mm' symbol

This patch fixes a linking error if CONFIG_ACPI_PROCESSOR=m (this error occurs in the 'mm' branch of linux-2.6-x86.git).

We need to export the 'leave_mm' symbol so it can be accessible for the ACPI processor module.

arch/x86/kernel/smp_32.c +1 -0
index 596d002..dc0cde9 100644
@@ -263,6 +263,7 @@ void leave_mm(int cpu)
 	cpu_clear(cpu, per_cpu(cpu_tlbstate, 
 cpu).active_mm->cpu_vm_mask);
 	load_cr3(swapper_pg_dir);
 }
+EXPORT_SYMBOL(leave_mm);
 
 /*

*

arch/x86/kernel/smp_64.c +1 -0
index 1334afe..2fd74b0 100644
@@ -76,6 +76,7 @@ void leave_mm(int cpu)
 	cpu_clear(cpu, read_pda(active_mm)->cpu_vm_mask);
 	load_cr3(swapper_pg_dir);
 }
+EXPORT_SYMBOL(leave_mm);
 
 /*
 *
Signature · 2 lines
-- 
	Miguel Botón
#2 lore raw
In reply to Miguel Botón
Quoted 5 lines · Miguel Botón

This patch fixes a linking error if CONFIG_ACPI_PROCESSOR=m (this error occurs in the 'mm' branch of linux-2.6-x86.git).

We need to export the 'leave_mm' symbol so it can be accessible for the ACPI processor module.

ok - i've added this as EXPORT_SYMBOL_GPL() - this is strictly for kernel internal use.

Ingo