Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp484308lqp; Tue, 11 Jun 2024 09:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbrWyGVIVtCxE/GQ0s0ObuO5du8dFjMKD5CZNy4JGu3nZAWZBt3mdICr4UIs67LK066FTPRxFOmoa6irfq20wVNmwpZocVpKnmQXJ+uw== X-Google-Smtp-Source: AGHT+IHQsfvtSYc40v4OcV+qYH4adYgp9ixZQRwRIoQF5YMqlIv04qkz+USVFyieHQDazh+W28+C X-Received: by 2002:a50:c34d:0:b0:57c:935d:2881 with SMTP id 4fb4d7f45d1cf-57c935d28e0mr1703533a12.32.1718124893531; Tue, 11 Jun 2024 09:54:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718124893; cv=pass; d=google.com; s=arc-20160816; b=AYceXuuU5iRnSTg7xiO6QqMCS2FpSAEJszjUB8X2yWYz2Jr3kOL+AYvOtFKErQc7if LoM/AcIb17n/y5wYeoO3kfMKiCVeC1Ez6MsDvPlo0hUmMro4s7V5E5fFbRAqR/HXfTBk TFOz+J0ljSJsLigsQdHok1OkQEQr0PXhodVZJrywkk9ToFPgwHkTZNm0dgO6EVBn1dig EZZP15bTjGJRpHU5I1NO2pzwWT3LkFlYXLgpXBK8xWg3Y3nPLPnG3KLfwp518DAdI3tg EX9IRDYpCYfYPUbFBJ/f8QyMFA8E8TyO+mVMpSZ3nqDA3gSv4wiiis2L/47djLawqfRs SzTg== 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=V+hjt4Z/0LAf7Zw7Fl/GmDhRIH7PpR6e4+SLHZhL/qs=; fh=QTzL0XpWv5tiFAeTRD/6A61kjU0JIaeKc+DG+Jn+lH4=; b=YUiepNAVOqOQ3/revSRuC3m3RFQx5R3f6azqC4LEfieQqJWHdBcTOobpWfRCluecUM b9nHZE0NcNrfU7/z9hCjJl4juXU6Ihm2DwK+RajOds/7r9PFuT0Ul4rldG3PvnjhQMzl JY289vMklFLpYFuTdyVkrucGFcqQTwsTIb9oKdbnJ2IhWe3WPOuQk4acZ4n/u4xgtKOw n0CKBRobe/AHvElxxM/hbQW2hk7+QYJnyJswjWtecdXxhZEoMKspPRsUGZPOn8bhA37N 7mxaNf9lLksbrG0ZN8yxzn/1HbWA7OIS31lrHudnDIj7cOn0pHxjEka+cPMEeaQqpLBT kCCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cDMhZyge; 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-210284-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210284-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-57c77b21137si2819528a12.209.2024.06.11.09.54.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210284-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=cDMhZyge; 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-210284-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210284-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 41EC01F26184 for ; Tue, 11 Jun 2024 16:54:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3870C548FD; Tue, 11 Jun 2024 16:53:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cDMhZyge"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rv1RE2gj" 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 A973E4644C; Tue, 11 Jun 2024 16:53:56 +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=1718124838; cv=none; b=m+rZZqQXOPDUSehzqOh3qxUnztvyn5xs0eAtVNmxmt93vms0JZ/ipV+w9/+Q8ZpWhiBt9XXON2dN4xb0X/0CURavAQtF04kKtNLt1fHjt/oJESgPrz1c13HRUJm0J/FFdn2SR7RGW5+QINoMVGPVRPXODK9Gm0kQPrAIPsxuIuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124838; c=relaxed/simple; bh=3Ma9C32kfSDJryVc00eJ7KFkpByb9Qt3TMRjlBO3xbw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=lnrhq6I62u6gGMozquXsFNuhWxO2U9YrOxRsLoE27SNkvkIdQFVUwpuE/LuGIh74PEWgjmIFHmfplcBg/iBg0ewm91dykU75lDISA3r6KO5+WuyTOsr6E5xFJ4zFYl2Z5G1vx6MWrqL0GIBd8ryDapF5CGN5K4R0FN4NdqXL83w= 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=cDMhZyge; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rv1RE2gj; 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=V+hjt4Z/0LAf7Zw7Fl/GmDhRIH7PpR6e4+SLHZhL/qs=; b=cDMhZyge/WzZYNbiOD6NYzehWYmxePXw6k9qM5UGoJVlLGEyvO/DnlZTwcIlNWPWHBj4RD 10pDTz1txG018nfc9uhijJr3E2+8mplY5RxGMokANXrW7Lq8ISfm4TpbUu2pgOzHaIPLPa NS9cpzcIHXrp+RECdMMN0OMURmaQbyiit0uyZV8dFwB1ZBUFmpCZWUlRbHCUemVSlNk0Oe 6cuVyOC7VquLqo6i6y+2uSTcmcuQl9caGccE7uo0SXJSzwFMYjToOgtcYi1Q1bL6FKwCO+ TML3NG01E9Cz4eAMOzbg8n68CppSIEYuAZ82qPl9mCdmQ6KJbhVyFlXqqn2G/g== 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=V+hjt4Z/0LAf7Zw7Fl/GmDhRIH7PpR6e4+SLHZhL/qs=; b=rv1RE2gjUg58xzVuHHemnBJrnnIMzNl1QdyGxMY8Mr/sT3HW7dy8pUwYLDb6Autv9loAyk g5QgZnN7opVz2yBw== 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_3() macro Cc: "Borislav Petkov (AMD)" , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240607111701.8366-14-bp@kernel.org> References: <20240607111701.8366-14-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: <171812482705.10875.5055811724400884708.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: 1a6ade825079243f08846870561aca0e1fdfb803 Gitweb: https://git.kernel.org/tip/1a6ade825079243f08846870561aca0e1fdfb803 Author: Borislav Petkov (AMD) AuthorDate: Fri, 07 Jun 2024 13:17:00 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 11 Jun 2024 18:29:26 +02:00 x86/alternative: Convert the asm ALTERNATIVE_3() macro Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20240607111701.8366-14-bp@kernel.org --- arch/x86/include/asm/alternative.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 28e07a0..5278cfb 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -466,31 +466,6 @@ void nop_func(void); .endm .macro ALTERNATIVE_3 oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2, newinstr3, ft_flags3 -140: - \oldinstr -141: - .skip -((alt_max_3(new_len1, new_len2, new_len3) - (old_len)) > 0) * \ - (alt_max_3(new_len1, new_len2, new_len3) - (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 - altinstr_entry 140b,145f,\ft_flags3,142b-140b,146f-145f - .popsection - - .pushsection .altinstr_replacement,"ax" -143: - \newinstr1 -144: - \newinstr2 -145: - \newinstr3 -146: - .popsection -.endm - -.macro N_ALTERNATIVE_3 oldinstr, newinstr1, ft_flags1, newinstr2, ft_flags2, newinstr3, ft_flags3 __N_ALTERNATIVE(N_ALTERNATIVE_2(\oldinstr, \newinstr1, \ft_flags1, \newinstr2, \ft_flags2), \newinstr3, \ft_flags3) .endm