Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp484176lqp; Tue, 11 Jun 2024 09:54:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8XMFVeR45ySbaP8DYJwATOuK9Hgzo7BOWx4Pzb3A1LW0jeefQaad4Ehb9zi6DwAQR2B1r/GSOd9T7jE7jBhS93HRGWIbN/CqTLlX3hg== X-Google-Smtp-Source: AGHT+IEgPIDQAPVLI/BZYimaS2+MbUdIRktIaTmoNf2JhMOW5Igb9XRVF36yi3VYb1mckyTdQQ8m X-Received: by 2002:a50:ab12:0:b0:57c:70b4:7ac with SMTP id 4fb4d7f45d1cf-57c90d42055mr2241132a12.15.1718124880719; Tue, 11 Jun 2024 09:54:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718124880; cv=pass; d=google.com; s=arc-20160816; b=NNYUczZ47aCzlamBpSKI+9PzOPRIZwZbYJiN6h+TQDXTdcz7N6fMnFtBVPbwWZ7dMH suAELc5WNO7zBsMfJ3Ov9PLY+vOjWZ2xkVHrFO5JL2mXphWQCSswP6kHFIIUHZ/lnYPd NvAIArrtfB5mn2edD9dAoc2dAyx39hl3zuVB2zA9qSee/sPGQBmD9HIb8hkDmkFjj21e W7OvuiU4J19+e9JAUDz8VYGgXh7mho0mkBBCkzxh407YMIg17dWGnYDWeUz+tZWpZxJq O3ulkWDUlmM/ns85BVEFbGS0a4LREdcipBtH6DoviXtWlLVdAlGohdGsDj/L/1sS67n1 hhvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=rWVck0F7jHjPkm+0mt2ZMDowoyS7SozV0qca6O2MP/c=; fh=QTzL0XpWv5tiFAeTRD/6A61kjU0JIaeKc+DG+Jn+lH4=; b=PINjoPoKhvjTpJhwknwFP9zWOx3ddDwqQx4a6jQj5ff7ooadTCAhCz57VH37NgLsJe jsY3uczwNer0cEGbyEbTD6Ds4YVAVKUHnHZSbt+Fg4EyRYvf1mFvDgjW1RNkFAzEHDoF fhpfYt9QNGLsXMKKpNSY1WN75RHMsmPbFPij9e1Y1WB8wVFsnpg+qtEbXaLjDfwEPiGw 6Tjo91joZnpAHTuX7OTWq8KolNO+6k+btGay8E8TFiv1GzlqZUInHdZhU17P4dslMt5z YREnQLEJ6XTqE1/EA6EjYLpruO/EKc7scKXkQfA6R/i+csb2E3zJ7Fu9lXR4Runhc3Yc 78GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y9VSpfXm; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-210282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c4db9284bsi5140769a12.380.2024.06.11.09.54.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:54:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210282-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=@linutronix.de header.s=2020 header.b=Y9VSpfXm; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-210282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210282-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 6DEA21F261FD for ; Tue, 11 Jun 2024 16:54:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDA2A4AEE6; Tue, 11 Jun 2024 16:53:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Y9VSpfXm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zbjelpBo" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 60DBA47F53; Tue, 11 Jun 2024 16:53:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124836; cv=none; b=RbU8HuqcMcQwwYZM0rkqEiFvBEYyEK6+3LFCY8muCdbbi74CVg+ySVtEq6LXMT/Y+ujekbMZ1Psk2hPkaIAsnh5ilkT53yqtOamtpUw5dyXvTjSjOyex+TVXu+oeldDLySGfIlKXJNTdhv1OarkxxOI0MnjeWpTizexE/xb0ScQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124836; c=relaxed/simple; bh=+NPcMB/845R3obyO5M7tbuqRotnBSF6jqQtQ8LzI0DA=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=KrjNDBT/mv+9Jve5ivyvbb3zGFKyZJcnmc5SbRe2VYicepLFW/16EjsUy6oX3NptgpeL9b2M5+RS0WBmFhwdJ3Wx5HJLd82V4qeq6lMhjgSe66PwLQJT/465vb+briSBM3TXwdGZsUUse3uUW20pFY8ov3AUGjL24m5H5UxEWU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Y9VSpfXm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zbjelpBo; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 11 Jun 2024 16:53:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718124827; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rWVck0F7jHjPkm+0mt2ZMDowoyS7SozV0qca6O2MP/c=; b=Y9VSpfXmOGUL1HnG/tkGLX+eUlppbWTjwZ6MZsRxhsIZGZy75M5lYRTBbggXob8InGwnSK DT2kZfbdITa16ahKujU1d12jgVwl30ITxMHFx/CsmhvCaV4Hh8yvQru5lQoXF2ZeaLNxIZ Y7CFdEH8Y8C1om2NSq7agxSWzuUSw7pQKrxDmKsKJfM127Cg7PTl4Dt00MTlHrxbv/5d7k vre4n44km+cMp2S2nJNhd6aHd2HwwaRfnO88oTcS8l7K9pyofAhR7d5SyLTeDqqj/bixhK V2JBJniPZbSeQe1piBMFAINubTKO8fsKpoEHyr/3KKUfsY0mwiCKSxcesZL1tA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718124827; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rWVck0F7jHjPkm+0mt2ZMDowoyS7SozV0qca6O2MP/c=; b=zbjelpBojg4UQlADY9PIOtYzO7MoEhoue4F3wjMl2MfeC/Kh7OAKuaQUfdv9GnXdSryMaq ezwKp0pLu4yo8bDw== From: "tip-bot2 for Borislav Petkov (AMD)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/alternatives] x86/alternative: Convert the asm ALTERNATIVE_2() macro Cc: "Borislav Petkov (AMD)" , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240607111701.8366-13-bp@kernel.org> References: <20240607111701.8366-13-bp@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171812482736.10875.10703597859783829646.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/alternatives branch of tip: Commit-ID: 08a621fcf4a4a4d765315ffe6a28f5d31e8237b2 Gitweb: https://git.kernel.org/tip/08a621fcf4a4a4d765315ffe6a28f5d31e8237b2 Author: Borislav Petkov (AMD) AuthorDate: Fri, 07 Jun 2024 13:16:59 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 11 Jun 2024 18:27:14 +02:00 x86/alternative: Convert the asm ALTERNATIVE_2() macro Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20240607111701.8366-13-bp@kernel.org --- arch/x86/include/asm/alternative.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 31b9a47..28e07a0 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -461,28 +461,6 @@ void nop_func(void); * @feature2, it replaces @oldinstr with @feature2. */ .macro ALTERNATIVE_2 oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2 -140: - \oldinstr -141: - .skip -((alt_max_2(new_len1, new_len2) - (old_len)) > 0) * \ - (alt_max_2(new_len1, new_len2) - (old_len)),0x90 -142: - - .pushsection .altinstructions,"a" - altinstr_entry 140b,143f,\ft_flags1,142b-140b,144f-143f - altinstr_entry 140b,144f,\ft_flags2,142b-140b,145f-144f - .popsection - - .pushsection .altinstr_replacement,"ax" -143: - \newinstr1 -144: - \newinstr2 -145: - .popsection -.endm - -.macro N_ALTERNATIVE_2 oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2 __N_ALTERNATIVE(__N_ALTERNATIVE(\oldinstr, \newinstr1, \ft_flags1), \newinstr2, \ft_flags2) .endm