Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2055954ybb; Fri, 29 Mar 2019 17:50:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqykv9H72LooK0UrQtVohumQWR6ughEYbbZ5DfMd/7c3Ll8zAENYIReLfaCdbYDpZC9dMY3M X-Received: by 2002:aa7:9095:: with SMTP id i21mr27788452pfa.134.1553907057499; Fri, 29 Mar 2019 17:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553907057; cv=none; d=google.com; s=arc-20160816; b=PLgDLZqnk6INDtGrOCmVb2hRvUVGnhDNDPa76RSLg4LmylSd32bjli7zHRMp4FQcgE OYjVejld2W6xoxE1n1OMlmOG1Ws3FGI/TIElf6DmPAItbZua2xghR3+7MhP0lm2PVox8 +K8Wz5nygqqVuQ4HWIZWycOnx0xwSiNQF3+tnNNbjD3G5Dt3/S4SsZIvwhO47sLLiZOL kUKBJtxG8LukDtnbwQfq+yLqZkACR117T6R/VyX+ghGRVPdONQBMFf5z1rtwwKskNmin Iqf5UV9Kj0ib73xHR2TyqW8vNLrg2Dt0TW5D30yjnZkSt5g2dLMdPoxDIv1xMZUIMIQW fQFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7sq3LBHkn2B5m7rwS/EOalMsaktXolwrb4so4kblQJ8=; b=lr7WB3gfd92d1W+/jyvnsdjRtX93SItwNfXEpzNXvSpS4+nF2YwVf6lc1bYQ7DDWHD lnDXJeroFxgXzrUkPfbrYksB7WsiNimVonLY6FjYeWUF+sG+lCXCAo3KDfXv5kf2oZ+t NLzKtXyAjJKsG6I0Kb5jsg7GXN044S3yIF9TsN5MlB8gXf736KYsiIMZZIrRaBdlgd5L vgHghS0LSRIb2b6vvOPp088vaQ+dsmXKK5Aoega3uqZa2vM5WlT5104gsi8UL15a9cS5 NKzX61CnbbEuSi7a6FR5QatkawNDh5nnnSKlY2KxAZ6POlYq7+88r3JyaNtmjq5g8xpX rgsw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si3081010plt.418.2019.03.29.17.50.42; Fri, 29 Mar 2019 17:50:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730623AbfC3AsZ (ORCPT + 99 others); Fri, 29 Mar 2019 20:48:25 -0400 Received: from mga18.intel.com ([134.134.136.126]:21332 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730454AbfC3Arw (ORCPT ); Fri, 29 Mar 2019 20:47:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2019 17:47:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,286,1549958400"; d="scan'208";a="136048036" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by fmsmga008.fm.intel.com with ESMTP; 29 Mar 2019 17:47:51 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id DD53F301C78; Fri, 29 Mar 2019 17:47:50 -0700 (PDT) From: Andi Kleen To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH v2 2/9] x86/cpu/amd: Ifdef 32bit only assembler for 32bit Date: Fri, 29 Mar 2019 17:47:36 -0700 Message-Id: <20190330004743.29541-2-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190330004743.29541-1-andi@firstfloor.org> References: <20190330004743.29541-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen The "vide" inline assembler is only needed on 32bit kernels for old 32bit only CPUs. Ifdef it to not include it into 64bit kernels. Signed-off-by: Andi Kleen --- 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) { -- 2.20.1