Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp416313lqh; Fri, 31 May 2024 05:37:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXsigd3/YcnePFnehlpnY6wu7K8NgKZTchBX6kZRCGSc9GSS5F8tsT05kXEr5mxSBGXrcu6zowc8anqwYaPA9WsYAyNZ6QtbzY9rLzOQ== X-Google-Smtp-Source: AGHT+IEmTEOWUm2tqUiFvkxbGhps+IrCeE5gdOKmisbKQjIKQLSjWfS8MwKFEiEd443C7lx+IUop X-Received: by 2002:a05:6214:5b08:b0:6ad:7af0:e379 with SMTP id 6a1803df08f44-6aecd71c365mr18811586d6.65.1717159027098; Fri, 31 May 2024 05:37:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717159027; cv=pass; d=google.com; s=arc-20160816; b=cAJKcKDmM21P/tdXQy9m68Ciudo3uQsMCSBe+fkuWemvaI3YjAMT4n3vdfvfGDa9lT yUjRzQCRiJrG98P7E/TKNDbA9QxX/eChHxEy5PEHR1EUZpZoTiB0kqrvKYyx2+7nXOHt wpOFv7Ko29XM1UQBZJ9IQMypT3RfQ9r8Chplar2esKgtFnAoRg+gP/zRIQxwNmhhd9IV GcYUVvDy2QMH7dMDPSZBUqcQRBlugFpbdd/FmGZlr0CFA15uXqL3le1rHlvtO4giIiYd RbCJ8PV04uGcNf5hHoTQFXiCyQAwhbtcBAHNj0dRPxHpWOzPiT6oxi0351EiuJOM1Cog 7oaw== 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=RnLarqukKXPrCnsnocrPAzmMECOGGasmd41KnYfEVgc=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=rtBO++qc1i3/vydml2j7oLNXQ8gvk+kEUQbzxcbx6U4b3fAYXMS9DRLHGHQ4+c7tv7 +eeYiNzGKhBx3vfR3gphMaaEV/AzkIvlZoISoLqVClsB7psZk33+st5WBIObDsFMrOl3 IJZi9dilc8dEFzWv1kk4KY9f7yUOeiJ3SiVAHVL6px7/5NB9EU0A74Y4/iLixKhi7h2i LnlQE2VZTasZnvRwJHsNLbDSrDgQMEiFIf31+JlNcqpNBLehOyu3a5jSvCZPDVm2wsAT cptJeWFwQC3w5fvRyGNxqAirp28w9Z5GcwLZAxaiAirp4l33+jAL5WflV/IXArZlkJ8J T6jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ac6XCjqX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4a732c26si19458546d6.25.2024.05.31.05.37.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 05:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ac6XCjqX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196792-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BD45C1C2466C for ; Fri, 31 May 2024 12:37:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8BF715D5BB; Fri, 31 May 2024 12:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ac6XCjqX" 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 03EC815B96C for ; Fri, 31 May 2024 12:35:23 +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=two4HPPXkgzUCiTB7E6zYuLgi2MItmdY5JZmDQ9uk1FLGFxyPgxV8qGkrTMn+3+7XjgElF5yeJfK5IfNwL9N09E451j8osdyD4TtqaidShZRlK2j11lrkOkap/vLCy3GrfYWuXmRjb71m7UnfdX3tIkAfS2u5BY6Zb5gVxbvxK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717158925; c=relaxed/simple; bh=dN5HiwWgdZsCjkAa5Gu71vLMtjXHrncFvZfcWHAJ8xI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IfY/uUDaEtqj6LAlctrv9Eaa/+Hj9C2J8bxPLdXiK+NfiLF25DVHYR0k9Q/rJv1iMih+aV5QwlAYJSsHmGQ99hfRqoPziwhWrPhZNzqUHm4ktuFfFSlovC38ouB/ZXz2owmfQtUXMVVy5hKlYthtJHHHrmVwPaZheVtan9pfSWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ac6XCjqX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C266CC116B1; Fri, 31 May 2024 12:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717158923; bh=dN5HiwWgdZsCjkAa5Gu71vLMtjXHrncFvZfcWHAJ8xI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ac6XCjqXy6vpdVp8dQaboG/+NmqFCXFQKzFnyIU3ScL046HCJ4PsyeTBllR4AGei1 HV6U/tPHWY9IXtXBTJasqbT62LeB/ugX1VQ5ovfxKHh0Pe24xDfz7LdzcMFEGYJOGq BeYbeaL0GNPuE/FpzhmxwlhV0jpnbOaA36pqqt4gasc0T+iGtYT4wYcTxZ6/PGSRdS WlO2Gn0QuKqwETXzMVGlIXRxJF6csiT0kx9xAiQaPPHlXMyYxP8LxH5VzC+unUPz3M BtVRgAuUDK/QJiZoOM49PTy9Txil5wqSpq5fctUFX5k8wvRpn+ogjtOiHyp3ZMls/x V5pUopQugPFUg== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH 06/14] x86/alternative: Convert alternative_io() Date: Fri, 31 May 2024 14:35:03 +0200 Message-ID: <20240531123512.21427-7-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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 7f5f26fc42a9..8a0a6ba4b741 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -335,14 +335,9 @@ static inline int alternatives_text_reserved(void *start, void *end) /* Like alternative_input, but with a single output argument */ #define alternative_io(oldinstr, newinstr, ft_flags, output, input...) \ - asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \ + asm_inline volatile(N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ : output : "i" (0), ## input) -#define n_alternative_io(oldinstr, newinstr, ft_flags, output, input...) \ - asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ - : output : "i" (0), ## input) - - /* 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) \ -- 2.43.0