Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945912AbbEESnG (ORCPT ); Tue, 5 May 2015 14:43:06 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58318 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031848AbbEESnA (ORCPT ); Tue, 5 May 2015 14:43:00 -0400 Date: Tue, 5 May 2015 11:42:37 -0700 From: tip-bot for Marc Dionne Message-ID: Cc: linux-kernel@vger.kernel.org, marc.c.dionne@gmail.com, luto@amacapital.net, marc.dionne@your-file-system.com, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, luto@amacapital.net, marc.dionne@your-file-system.com, marc.c.dionne@gmail.com In-Reply-To: <1430763404-21221-1-git-send-email-marc.dionne@your-file-system.com> References: <1430763404-21221-1-git-send-email-marc.dionne@your-file-system.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86: Make cpu_tss available to external modules Git-Commit-ID: de71ad2c97862eae1516aa36528cc3b317c17b2f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1910 Lines: 46 Commit-ID: de71ad2c97862eae1516aa36528cc3b317c17b2f Gitweb: http://git.kernel.org/tip/de71ad2c97862eae1516aa36528cc3b317c17b2f Author: Marc Dionne AuthorDate: Mon, 4 May 2015 15:16:44 -0300 Committer: Thomas Gleixner CommitDate: Tue, 5 May 2015 20:40:31 +0200 x86: Make cpu_tss available to external modules Commit 75182b1632 ("x86/asm/entry: Switch all C consumers of kernel_stack to this_cpu_sp0()") changed current_thread_info to use this_cpu_sp0, and indirectly made it rely on init_tss which was exported with EXPORT_PER_CPU_SYMBOL_GPL. As a result some macros and inline functions such as set/get_fs, test_thread_flag and variants have been made unusable for external modules. Make cpu_tss exported with EXPORT_PER_CPU_SYMBOL so that these functions are accessible again, as they were previously. Signed-off-by: Marc Dionne Acked-by: Andy Lutomirski Link: http://lkml.kernel.org/r/1430763404-21221-1-git-send-email-marc.dionne@your-file-system.com Signed-off-by: Thomas Gleixner --- arch/x86/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 8213da6..bfc99b3 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -57,7 +57,7 @@ __visible DEFINE_PER_CPU_SHARED_ALIGNED(struct tss_struct, cpu_tss) = { .io_bitmap = { [0 ... IO_BITMAP_LONGS] = ~0 }, #endif }; -EXPORT_PER_CPU_SYMBOL_GPL(cpu_tss); +EXPORT_PER_CPU_SYMBOL(cpu_tss); #ifdef CONFIG_X86_64 static DEFINE_PER_CPU(unsigned char, is_idle); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/