* [PATCH] x86: export 'leave_mm' symbol
@ 2007-12-28 15:58 Miguel Botón
2007-12-28 19:57 ` Pallipadi, Venkatesh
2007-12-30 14:23 ` Ingo Molnar
0 siblings, 2 replies; 3+ messages in thread
From: Miguel Botón @ 2007-12-28 15:58 UTC (permalink / raw)
To: Linux Kernel Mailing List
Cc: Ingo Molnar, Thomas Gleixner, Venkatesh Pallipadi
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.
Signed-off-by: Miguel Botón <mboton@gmail.com>
diff --git a/arch/x86/kernel/smp_32.c b/arch/x86/kernel/smp_32.c
index 596d002..dc0cde9 100644
--- a/arch/x86/kernel/smp_32.c
+++ b/arch/x86/kernel/smp_32.c
@@ -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);
/*
*
diff --git a/arch/x86/kernel/smp_64.c b/arch/x86/kernel/smp_64.c
index 1334afe..2fd74b0 100644
--- a/arch/x86/kernel/smp_64.c
+++ b/arch/x86/kernel/smp_64.c
@@ -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);
/*
*
--
Miguel Botón
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] x86: export 'leave_mm' symbol
2007-12-28 15:58 [PATCH] x86: export 'leave_mm' symbol Miguel Botón
@ 2007-12-28 19:57 ` Pallipadi, Venkatesh
2007-12-30 14:23 ` Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Pallipadi, Venkatesh @ 2007-12-28 19:57 UTC (permalink / raw)
To: Miguel Botón, Linux Kernel Mailing List; +Cc: Ingo Molnar, Thomas Gleixner
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
>-----Original Message-----
>From: Miguel Botón [mailto:mboton.lkml@gmail.com]
>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.
>
>Signed-off-by: Miguel Botón <mboton@gmail.com>
>
>diff --git a/arch/x86/kernel/smp_32.c b/arch/x86/kernel/smp_32.c
>index 596d002..dc0cde9 100644
>--- a/arch/x86/kernel/smp_32.c
>+++ b/arch/x86/kernel/smp_32.c
>@@ -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);
>
> /*
> *
>diff --git a/arch/x86/kernel/smp_64.c b/arch/x86/kernel/smp_64.c
>index 1334afe..2fd74b0 100644
>--- a/arch/x86/kernel/smp_64.c
>+++ b/arch/x86/kernel/smp_64.c
>@@ -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);
>
> /*
> *
>
>--
> Miguel Botón
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86: export 'leave_mm' symbol
2007-12-28 15:58 [PATCH] x86: export 'leave_mm' symbol Miguel Botón
2007-12-28 19:57 ` Pallipadi, Venkatesh
@ 2007-12-30 14:23 ` Ingo Molnar
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2007-12-30 14:23 UTC (permalink / raw)
To: Miguel Botón
Cc: Linux Kernel Mailing List, Thomas Gleixner, Venkatesh Pallipadi
* Miguel Botón <mboton.lkml@gmail.com> wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-30 14:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-28 15:58 [PATCH] x86: export 'leave_mm' symbol Miguel Botón
2007-12-28 19:57 ` Pallipadi, Venkatesh
2007-12-30 14:23 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox