Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp963542lqt; Fri, 7 Jun 2024 04:18:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkDx2EKHUHajKjJ6Otd+rwLfNh75CTOyiLnZ1Q7iIeqmG2HuViPW5GrTcqc18NlBMw7KXFKD93QOLb2AaNERGrBk6NXe6/sDLyOViM0w== X-Google-Smtp-Source: AGHT+IGiTs+MP+GpaVvPkyJVaqyJItBI37xz1mGwGKKhySkwzGldmRfOZPmxT2zTaGtbED5O0UoU X-Received: by 2002:a17:906:dfe9:b0:a67:da88:149a with SMTP id a640c23a62f3a-a6cdaa0f56dmr156989166b.55.1717759128403; Fri, 07 Jun 2024 04:18:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717759128; cv=pass; d=google.com; s=arc-20160816; b=rRRoM1mvkqkjEZ47qnctKpeOZyvzxHeAWQmAxo0kvU2hq/at5e6kEtlm9ztlCaIu3N hYbfzo6lUY0cYakmCakuKXTIoH8VrVJIyoTlPbsczFFD7BTDUnMaXRLKxkEPfw49hb6U AqkVP4Jh0YF+rMI67j1kZVf7YQ/xgnp1smhUS+rw1QA+xqrVljoWYuDiLpuKj4pqtAKC 7anmDg9u5pzw70LzxGJtjzYSLPGZam9XKAFLLwdTzXkm1WL69+DuS88ey329IuUnFhMc NpdhNYV0PwyKciPbJ01TNnW0D7vOuJjgM7Zrh8czjwKsALoJWBHeAJz+bKvVpZBHiAOq Pmhw== 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=3JuTiAn8WC4U4uVWqB4cqIaT/JnB0y4qTlCDiLr2wwU=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=IYbQFl2xMqKRhzjYKeRXG5wWZuLskZFFGnEbDBn2siGPcyEGhNWjP30q1dFieq43Df cj0LM478ep+SEm9dbPyRI7ywyGYNxQimwqxqK2PuDK4SeLYG3zgl+1yIg7icsvgEu7+e 53gbd95uaqxy14h4scvtZiZrruvTrvemHJTZJpvonXr4/QDwC5izqEdWYLClrWfsewph 0krCSaXFIiGUwxJ73kzVeszV67p2EGvyva0c0viY/cRyZwVDAMEFqT7tiPV6xVN0mU8s 7aJfv8JotuAfS4zvb9qtKpSrdYsm3v4PyXil6N8A/dfQHcYW18MGTE1mkhVOTIsgMqYD imXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ixcC4Ay+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205886-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205886-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c805881b4si173817366b.116.2024.06.07.04.18.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205886-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ixcC4Ay+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205886-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205886-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6BCCC1F24B4E for ; Fri, 7 Jun 2024 11:18:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6B07190463; Fri, 7 Jun 2024 11:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ixcC4Ay+" 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 F009519146B for ; Fri, 7 Jun 2024 11:17:13 +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=1717759034; cv=none; b=eBwCku0rq5vSUWvyqju8g7+dlZYpRD3w9TyAxXqTHWhxgiCQooQstrfy5BkrQ4e6xJ3AnpZlc8fJ0pbMPxmeclRP4yk+CL09JYYyboOG5dzv9AGwSKozcGOB9b8MhLeTA8VuI408mHR1piQGeBPQJcIrml5mYIny0zL/izEi84M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759034; c=relaxed/simple; bh=jzhujQuJXGlLkVBXPJVMy7/GVgi305oTlkYSmvQWPSI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bfJy3+dxGkvGk9bWuamUJGhNhlWFUWAgb0yWFosIZyk3H2c2LR08dN+hLsrHeDhncBbOoQdEFTL3DqabiKCg8sd3reSrvzqXeDhaJF+1+AS1au9rgvfOOFnz70CsQ1SvLbsJ7mmMcniED6s0LudJnEniwC3pG/tof/8MbbSgG6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ixcC4Ay+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 038E8C32781; Fri, 7 Jun 2024 11:17:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717759033; bh=jzhujQuJXGlLkVBXPJVMy7/GVgi305oTlkYSmvQWPSI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ixcC4Ay+mySyaHhLRSmQ3DYtgRjZenrqrtGQld+I6dDbX7+sJvGJOifTfTLZuZCCO oJiOiCu3WDZdJaQr1/N6HVSwCZ3e2EcKaITf+ykV8nB0lU+svDH9VwCWBJNnOcPhG7 fdfAbBHnCx6pLoU3xlY4gTdPh72vTHGcoflESECeRjnRBqZxb6hR43VnkLBa4w9+T1 bqk+2cmYxzyTIFioqZxoQMHc34ykpZuISTti7J5PpVV850sIgk4y2zyXDRpDH9Cw3u 2wGMV1yl4dhaGoZlTDfhY1Glx2BhVgP1KgeS1dFUTzfhveLD99w9Hi7qs0iBv3mc2M phf5kWSqwcwPw== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH v1 05/14] x86/alternative: Convert alternative_input() Date: Fri, 7 Jun 2024 13:16:52 +0200 Message-ID: <20240607111701.8366-6-bp@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240607111701.8366-1-bp@kernel.org> References: <20240607111701.8366-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 21ead5dea15a..428d6efeb333 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -330,7 +330,7 @@ static inline int alternatives_text_reserved(void *start, void *end) * Leaving an unused argument 0 to keep API compatibility. */ #define alternative_input(oldinstr, newinstr, ft_flags, input...) \ - asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \ + asm_inline volatile(N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ : : "i" (0), ## input) /* Like alternative_input, but with a single output argument */ @@ -356,10 +356,6 @@ static inline int alternatives_text_reserved(void *start, void *end) asm_inline volatile (ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) -#define n_alternative_input(oldinstr, newinstr, ft_flags, input...) \ - asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ - : : "i" (0), ## input) - #define n_alternative_call(oldfunc, newfunc, ft_flags, output, input...) \ asm_inline volatile (N_ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) -- 2.43.0