From: "Miguel Botón" <mboton.lkml@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Subject: [PATCH] x86: export 'leave_mm' symbol
Date: Fri, 28 Dec 2007 16:58:05 +0100 [thread overview]
Message-ID: <200712281658.05958.mboton@gmail.com> (raw)
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
next reply other threads:[~2007-12-28 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-28 15:58 Miguel Botón [this message]
2007-12-28 19:57 ` [PATCH] x86: export 'leave_mm' symbol Pallipadi, Venkatesh
2007-12-30 14:23 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200712281658.05958.mboton@gmail.com \
--to=mboton.lkml@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=venkatesh.pallipadi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox