Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2100171yba; Fri, 19 Apr 2019 12:07:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC8tHX9ITtyOjfQrNU76t6gWLigZM4kFqbEdmx02J0qCkqu42kNhFFyW3mdPxFquG+bn/B X-Received: by 2002:a17:902:1124:: with SMTP id d33mr5538228pla.268.1555700847455; Fri, 19 Apr 2019 12:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555700847; cv=none; d=google.com; s=arc-20160816; b=kU8krZPrZFUMxKkscFM43MW0zjyu/AU6SQtuCNGljnSXLChwUOxdBB7Hzjo6WVFw3X wmzRVGLkDWqfXYYVEleXHjXN68eIM+u2+j0DUoQPjO38syXipDsjkVQ2xJ5IQVeH6gsb tEkm1rq/74BahLdtx6iiGZv2DOq5ORMuwUxJ303257ApZ4q0pa8pftoSHblRXrsj6Div 7Sgk+hyOflu2TIGGvId3oOJGdiWZ4g3xTzumcoeoONJX+siQZjlK2h29j/d1ARNTo+xt nVSLLh4yEcFZbpD5TQdY0C1jB5QOnvXXBajQG6+7w4BsiJvCbcSe+qGqQ/zSWi9Kw6LP spAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=OBCV4fhJep5HJwfWaXhzEpUR75KqJZcqBp+PkEvsCX8=; b=qCtx0aku95h9VXS8MfiCOw1l42JMaQNaLjHMDZUrv/F2xJoBAtqbIWNQYKAkWljofd rUZtd8gqvBQnmwrLX+sniWfbPZzjkKA2OSifVqbIgcNUkUsCQAS9MoJhP18JDIgm52+f XFSmZ4Jy0SijZsNpYej0T60oJ7dhWlRsFlP9rimLyXqnwyBX+96xJadykTmjEfC/UqXV pA55y+j3WfvJY429cL7qGEeEcJ4senjJMkJQq/CcMfPAojHyTFVr2jprI9QTBOkgG53l 5Mqih8g2Fo7Mc2FJ6Wy1UcRDn3JZRB8wIL+n6rgNT1iPHmKXIdQ4HIZotGEZGvSLGxcJ SuxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019041745 header.b=Q0nrulOV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si5844503plq.2.2019.04.19.12.07.11; Fri, 19 Apr 2019 12:07:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2019041745 header.b=Q0nrulOV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729530AbfDSTFh (ORCPT + 99 others); Fri, 19 Apr 2019 15:05:37 -0400 Received: from terminus.zytor.com ([198.137.202.136]:42949 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729127AbfDSTDv (ORCPT ); Fri, 19 Apr 2019 15:03:51 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x3JFqmEg332720 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 19 Apr 2019 08:52:48 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x3JFqmEg332720 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019041745; t=1555689169; bh=OBCV4fhJep5HJwfWaXhzEpUR75KqJZcqBp+PkEvsCX8=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=Q0nrulOV/glJTRVXfz6BtH0v5GTosfjYNal/hDq9CX1EkuYgttF4Q87kcOp/au7DE xqocRfUCHnlTeaoNNMBDrbPErCNO7L2hMf/Tqb+e9fvQK9Ps+4XRQSEl1kIsgFQ0nL ox4nv+NS3hHSKOHAr2Sh48jGYJ4Be062j8KwLjrRpM8Ci/snml/Nq74rghsjzTajUL otoUTdF9X12Rks+Cb/O1FtyGZXbEdb5s4mb9mwCA+S1qzSC6xmp165mUnyWZDjZlOQ jZ6N9DvKvUaIdvwVSGyzRBddPaLQWNZ+TowNDNtMJZFO5QmjwXVJkKZKoP1od9qMSz ydiDxfbAU+myg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x3JFqlb5332717; Fri, 19 Apr 2019 08:52:47 -0700 Date: Fri, 19 Apr 2019 08:52:47 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andi Kleen Message-ID: Cc: tglx@linutronix.de, ak@linux.intel.com, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: hpa@zytor.com, mingo@kernel.org, ak@linux.intel.com, tglx@linutronix.de, linux-kernel@vger.kernel.org In-Reply-To: <20190330004743.29541-2-andi@firstfloor.org> References: <20190330004743.29541-2-andi@firstfloor.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/cpu/amd: Exclude 32bit only assembler from 64bit build Git-Commit-ID: 26b31f46f036ad89de20cbbb732b76289411eddb 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 X-Spam-Status: No, score=0.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 26b31f46f036ad89de20cbbb732b76289411eddb Gitweb: https://git.kernel.org/tip/26b31f46f036ad89de20cbbb732b76289411eddb Author: Andi Kleen AuthorDate: Fri, 29 Mar 2019 17:47:36 -0700 Committer: Thomas Gleixner CommitDate: Fri, 19 Apr 2019 17:47:35 +0200 x86/cpu/amd: Exclude 32bit only assembler from 64bit build The "vide" inline assembler is only needed on 32bit kernels for old 32bit only CPUs. Guard it with an #ifdef so it's not included in 64bit builds. Signed-off-by: Andi Kleen Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20190330004743.29541-2-andi@firstfloor.org --- arch/x86/kernel/cpu/amd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 1bcb489e07e7..fb6a64bd765f 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -82,12 +82,14 @@ static inline int wrmsrl_amd_safe(unsigned msr, unsigned long long val) * performance at the same time.. */ +#ifdef CONFIG_X86_32 extern __visible void vide(void); __asm__(".text\n" ".globl vide\n" ".type vide, @function\n" ".align 4\n" "vide: ret\n"); +#endif static void init_amd_k5(struct cpuinfo_x86 *c) {