From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751463AbeACUkQ (ORCPT + 1 other); Wed, 3 Jan 2018 15:40:16 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:41818 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750945AbeACUkP (ORCPT ); Wed, 3 Jan 2018 15:40:15 -0500 X-Google-Smtp-Source: ACJfBosHhFF2pV43iPPVR6IluDBmE8XSEZ9yDnCRcuJSTbw+wFuLZ6WR3yu9aq7L1G7cqbLa5QWI+A== From: Nick Desaulniers To: Thomas Gleixner Cc: tj@kernel.org, cl@linux.com, mingo@redhat.com, hpa@zytor.com, bp@suse.de, luto@kernel.org, kirill.shutemov@linux.intel.com, thgarnie@google.com, jpoimboe@redhat.com, minipli@googlemail.com, me@kylehuey.com, namit@vmware.com, tklauser@distanz.ch, thomas.lendacky@amd.com, linux-kernel@vger.kernel.org, x86@kernel.org, Nick Desaulniers , Borislav Petkov Subject: [PATCH] x86/process: define cpu_tss_rw in same section as declaration Date: Wed, 3 Jan 2018 12:39:52 -0800 Message-Id: <20180103203954.183360-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.16.0.rc0.223.g4a4ac83678-goog In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: cpu_tss_rw was declared with the macro DECLARE_PER_CPU_PAGE_ALIGNED but then defined with the macro DEFINE_PER_CPU_SHARED_ALIGNED leading to section mismatch warnings. Prefer the macro DEFINE_PER_CPU_PAGE_ALIGNED Suggested-by: Thomas Gleixner Signed-off-by: Nick Desaulniers --- 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 aed9d94bd46f..832a6acd730f 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -47,7 +47,7 @@ * section. Since TSS's are completely CPU-local, we want them * on exact cacheline boundaries, to eliminate cacheline ping-pong. */ -__visible DEFINE_PER_CPU_SHARED_ALIGNED(struct tss_struct, cpu_tss_rw) = { +__visible DEFINE_PER_CPU_PAGE_ALIGNED(struct tss_struct, cpu_tss_rw) = { .x86_tss = { /* * .sp0 is only used when entering ring 0 from a lower -- 2.16.0.rc0.223.g4a4ac83678-goog