Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp963608lqt; Fri, 7 Jun 2024 04:18:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQPRN1+x2BxMdd5qG7kpAlbV0NuiCQwtbfZSiF6JsK97mrjhsr/U8u+p11NEdHBP0GIQKVFLZvJ2WqLgYxQTBXzVF0UACi+DQDSJcwlw== X-Google-Smtp-Source: AGHT+IGyCOULmJO0Gan+G4J8pG2CYR1B+sg7Cs/Ut9odv5rPtPTlzDpsIMmZnyabhEzwG5ov0yev X-Received: by 2002:a0d:e248:0:b0:611:1456:c817 with SMTP id 00721157ae682-62cd566b8a2mr18793677b3.51.1717759136238; Fri, 07 Jun 2024 04:18:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717759136; cv=pass; d=google.com; s=arc-20160816; b=ZGMGHai6P4K4rB16mHPP7GMqeOgx4J85godws6OVQr5p5n3mh5cs7iRjorFqVsKsJG QFjKzK+eJ/eBO8Qwltsad5NrHAaQGG2vxWxfzl7DzGCrWAmh/QbIiwnm7adeaeoJUbyh T+cydXs4Jd1P5paMcyF1DsUVIp3KJd406/XqufzgKdpm3EVfw+SLnZmjqLLyz2CilISp cwIyjF7BpepIsKKON/0MlCLQSl2kx31SeuhUkPL011/+IS07Mfkyi+ClBw32TGyS/qLs k5NIaPTrs3/tLnDjZAiKjlsAU87nHo6zzPyNMUQ0uYMT1DOAFysPkJd5FL3WiG2hfAdF KarQ== 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=Xp6zirtosw4MouGsEfvpoOGQEbSqROo47FUOu2fz8Uw=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=uSd0uMf9xnTOknWbHmarO1f1YCfWdGqVfAKWNkA6vAmvFwEYAltcMz0XJsvVZkhebc A/JCjFAMYj8JLlOPc6qD/DH4wCt6hi+VwnyI5T2QASS7cwLdfCfh3ya4N5aqAxJ87ryT sl9UMs7uHpYPatTH9uFztljU4NWD4iap5SPBeHHi75VNy8evn0MwB3TnGFcE4eNljeww 69Agvs6KQOxImQDmgNgXQ6orp4jop+3x4XKBMTm0qF8VCBPNT8C9QzEv4Yfl/A2aQBO+ UHn2oc6BxgGu+JWheVwOx14Hu/CJqnKYJAN1oE9YU3grDq7a+IdrOOxj6MM9tJpdgh8/ Fptw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=daIHVpvE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205887-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205887-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-6b04f680a49si10610886d6.131.2024.06.07.04.18.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205887-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=daIHVpvE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205887-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205887-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 E0D951C20B09 for ; Fri, 7 Jun 2024 11:18:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FF0A194087; Fri, 7 Jun 2024 11:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="daIHVpvE" 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 9C43519309F for ; Fri, 7 Jun 2024 11:17:15 +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=1717759035; cv=none; b=I5sir601KUsy+OdDMcMFKWrC5OeWsrCmeGXwCf022q2mXbeeaIsg7cFmZAQYR7HR1p7JpRdbfsBn4er2pm7qytHf06GWSH4/7gNTChKgWuWxDazVUYDJzLLLRyST4iDK2dVypsmuPzWUwyPssJ0BVlP+YLJqE1pFjiYuXk9laQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759035; c=relaxed/simple; bh=0HCrS9uz4EYBWWuk9AcMKlySTziLWW736XUxfxX+jiI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hint7jC/jTGTtx1Ki6stTuFCWRK7mcJyHOrxd9bLWGd4wYFBnXr/6jU1lGn7QvmN2X93NWBzOs/j0Elp4tancZQ9c45vPm3SQ2vya0KeoOs/Xcow3mNjHLk79V+lQBCV+FzLqRX25L088wPyWZjrnOuoKJj6WOOt+MEtKEWv7/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=daIHVpvE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B202C4AF08; Fri, 7 Jun 2024 11:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717759035; bh=0HCrS9uz4EYBWWuk9AcMKlySTziLWW736XUxfxX+jiI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=daIHVpvES9VNvuR9PbB68XZV+OO9B20a/uGZBKngLVoIYxOInrYZ2Glp/P/DXiv3x V6uORJoGgfsnDna3dPKOAH72VugYFeC1/5V/I80Q8QGIr1U4HuJERo4DTqmQH28doB ZADbwSNoE7duI6tamzLg6biRvQU9w2YiFpWMJgn5zPqHbyW7nJ4VTDn42Q5ElkKoP0 Z2qDVYBwVt3nlvIkndIGU+Xoaf8F0fTH5wK2csCTbqIqP9IF/oiWCfVFC5PPx8+7WK Mr9eGZ0VkbVEYlPS62HZBcm9my7MPDNq4yPdMrtD1ycdBzCktYLkMm3Xnqo07wbDqG IMwqyN1HSr8NQ== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH v1 06/14] x86/alternative: Convert alternative_io() Date: Fri, 7 Jun 2024 13:16:53 +0200 Message-ID: <20240607111701.8366-7-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 428d6efeb333..6a746811c602 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -335,11 +335,7 @@ 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) \ - : output : "i" (0), ## input) - -#define n_alternative_io(oldinstr, newinstr, ft_flags, output, input...) \ - asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ + asm_inline volatile(N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ : output : "i" (0), ## input) /* -- 2.43.0