Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp416412lqh; Fri, 31 May 2024 05:37:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3SjrSP2Bt+XSnUxxSWBnsJ+viQVQ3IDI1H6pOWdtltLEVM18uRgONZLxT9r+S+K946+UU0uIyZiDEvzUBvA4Qo4CNtnFsPp0GFU/y9A== X-Google-Smtp-Source: AGHT+IEQpHoUtnG9GsR1Ez5AB4avIVHyaO27sLlU0MiJqwdlNXkxWtvRek5IYZTMJVzFR7rXvcbx X-Received: by 2002:a05:6358:3406:b0:198:6168:217 with SMTP id e5c5f4694b2df-19b492d6b2bmr226863155d.27.1717159037519; Fri, 31 May 2024 05:37:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717159037; cv=pass; d=google.com; s=arc-20160816; b=XlHzR/nMGz7ZbhJVWKxeRsb0Cgkq9kcaZ0u46b42QfKVOC0DMcdSHKjJUSALUJgsWs O4LnllBw+RLdlirFPoApz1DLx6AkuJRIYzyPq7z5HxWeF1n7TSjnCZFWAxH8viyPfRPg 1W0j5+pjMGOazclJpkiR7U9OdwUj7BEvGDhEDiL6R0XsAf+KMetsjAiyhrlaBemjx4ji zRWy4FuQrKbYTuq6lOuM0wv8X2qNUBiwonqiiXXYtA7w1hcYyKetXCJKDX/dz5um1yRy swCs9YXstjCx7NK5Y8xU4ceZ0KKbbBU734uipGPqjTcWxhoMRnUOiYvTmhreBTsLfpkx 9mRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=StnCrd6nuxUpbWvC99pgmCgeuU98jSYTJeQR0mmN5DE=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=Nv7dyxi7Zgt1Ga2sW98Mkx51Rb6Hl662hlAgPwxInx3H2RLp32oUiCr2kXtVgY9c9E SmtpnC2r4wBVwBNl4COjP9wIKBbS35qXFTBySo3/ivgfaVtrrhQ9taZI9ddQtoU0mqRw maVaA7CZleW1qwSBkkZDWqo8zxpEkZqZzEVLhtB6rOccb2X4oUBQCbeLIr0fr4b+GKSs myEaqjlxvgTS7GdXc+7JbYUZfQ+2qiFp4deE8NDG3LPAAgrflSl6PoayS1OLeHy3GUbG wnqvFzfzENlQmkEnZCH5elmc1EQBCnCbAc+aPUHsx+CBnWwvbb4PaIp5W+jpCdESfhNf gwUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eM2ozbUv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196793-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e075easi1469799a12.294.2024.05.31.05.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 05:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196793-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eM2ozbUv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196793-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196793-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CA614284931 for ; Fri, 31 May 2024 12:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1191515FA91; Fri, 31 May 2024 12:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eM2ozbUv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F5C215B978 for ; Fri, 31 May 2024 12:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717158925; cv=none; b=O/+sngNK6l4QAXSUjia2D46+tNycRjrCFZWjqwoJ0dBSrk1OdfyjAz343k7y4gx41g36utBDnHdP6IBwx4VlL8IaxYUAKBlf0fM4+Uk+xaaM0M46pTNNhHftGgXwncoRgv5BFBHvGPZ85xLXVySF49+ZA21yCDAnQhN/I3tnCX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717158925; c=relaxed/simple; bh=j0mGso8kNgtVmg3sLyotcKOfUTQN9/QvAP75p19vlTg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AQK3suHklcj4S6h9vud7bbpcalxmVwAaRrhpjv8bBi62xfZTy1nx3cdxzcAuRKzLC7k/QTABYaKAjk6kOFAK0JWFus/pcjMENdYgE9Q8QfhkfPIxNKyY/PYO78z97ntjDmuL68jVMMYXYwoS1HO3MJhqOuzfbGdBbmbN8tsfqJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eM2ozbUv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D3EEC32789; Fri, 31 May 2024 12:35:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717158924; bh=j0mGso8kNgtVmg3sLyotcKOfUTQN9/QvAP75p19vlTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eM2ozbUvVXe39GTTF8OpF6nwnO+Dl7pzaar+wMEacViymfI/QXVJh8AYvs07tsgsM 8l9mFzbF2nBKCKGs6YaPTjAarPyZY4IdJg/SUlZDyqZoafkNjLiMG0evFxWwaZCvE9 GT0ObNnWZZrsb9+UGbKw8BTA7ZQMayQoWM7GFkPyDsVYuJL4qsr1GOwl06gFAE6rQI aaqiJBKrO2Cwo/CHC2ysDMKq6IPykgQTvCNIsLLhyxg7r3C/JCjHyGY5lR7ItxNyyd vTAJSJi+G9YiGVFmU+L3qMhhYr/DrZ4M+quL7fU2opVjFb0vs8zpfZu6fBxhaP+nUd 6Q8M5CMRyaJQA== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH 07/14] x86/alternative: Convert alternative_call() Date: Fri, 31 May 2024 14:35:04 +0200 Message-ID: <20240531123512.21427-8-bp@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240531123512.21427-1-bp@kernel.org> References: <20240531123512.21427-1-bp@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Borislav Petkov (AMD)" Signed-off-by: Borislav Petkov (AMD) --- arch/x86/include/asm/alternative.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 8a0a6ba4b741..bc696c60848d 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -340,11 +340,7 @@ static inline int alternatives_text_reserved(void *start, void *end) /* Like alternative_io, but for replacing a direct call with another one. */ #define alternative_call(oldfunc, newfunc, ft_flags, output, input...) \ - asm_inline volatile (ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ - : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) - -#define n_alternative_call(oldfunc, newfunc, ft_flags, output, input...) \ - asm_inline volatile (N_ALTERNATIVE("call %P[old]", "call %P[new]", ft_flags) \ + asm_inline volatile(N_ALTERNATIVE("call %P[old]", "call %P[new]", ft_flags) \ : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) /* -- 2.43.0