Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp484282lqp; Tue, 11 Jun 2024 09:54:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPF9ZEIIweDsHSo+upPxanz2nERBdrTNTHWCkWekQmSlBM5IVBrHWq6U5yv9ccvaUv1/hLBFAbn+RKVuUD93lc4ernDzebimpxPN32Cg== X-Google-Smtp-Source: AGHT+IFK+TdsfGYZnA8kPSsd45FIbFGkudGAYWNsl41hn5exUGY/syfvZcM7MYWy0w/9e3/8DqwP X-Received: by 2002:a2e:3c07:0:b0:2eb:ee62:5e49 with SMTP id 38308e7fff4ca-2ebee62605cmr28023091fa.14.1718124891295; Tue, 11 Jun 2024 09:54:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718124891; cv=pass; d=google.com; s=arc-20160816; b=R0yEVcjz7gh2ehlzzFwDyFWn8PtNdRUA2RnD+YW0+7xBFlO9IF69WXJ8zznura/ECd y3ctxQE78ACoopPrXu7ngFh9WklKX6DjNPaMTcy3oTgebvVY5BNCw/l4d+TTB3HsBO/+ INpRSTh6Wb8965Qxf4wiEW37mdUPF+8LD8nEPPRaHWUz2HailDa+2wz3X1c5mlEfNfOA 3YEpJPp5KvcfL86p7edUqDBZbQkg73jhkdVQz2gTbVVq5/rxmdRbxkouZ2dIonUTc96C hCc+kjaIyhjWuZkf6KP2RTKIXMCZTDi1Go5fOkfGQKPfM6PaZghys6Wf/syATtNaVYDJ U0ug== 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=BeBIWYQIai2fKHzsNfAY+5tN1mp/+/hwb+YbFgo46Zk=; fh=QTzL0XpWv5tiFAeTRD/6A61kjU0JIaeKc+DG+Jn+lH4=; b=xt06DIXQ0rW4lOmTf9pNbd80PQ39ce5tVknM6Ld3SEBbPea1N/ClkQrIU8+ttj3ZtL xN/NkDlSaPwVkM2BUjh0FDbyHAql3VFHL5R1xKFRGYR+GM6XTCbq/n/L50P3kYKLQMWJ CF2DMAqtOJYjal8nxvdSwS/fA/VKOcza+XUY4IU3WsTYpY+f5OwJtyFsjJODcidGe3O2 K5BoBSe4qEUj8T0lAQrjqMOyY4Jfg03lG7eXwyGP7cWg/7KwJyUm+JOYxxdzATSfdCtb gnMwFUrfAvPcAGYfNJRAzd89mpId7kg/VMyMh3FL3jG6sBJTZlpHXCj3ToQa3KOVrWqq SIDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CuWv1ky4; 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-210283-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210283-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-57c7597745fsi3087746a12.628.2024.06.11.09.54.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210283-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=CuWv1ky4; 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-210283-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210283-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 F21911F26134 for ; Tue, 11 Jun 2024 16:54:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EFED50279; 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="CuWv1ky4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/7tBdnmv" 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 96C781EB21; 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=G8E+8Nv83aT0J5/iG6GBX3DySLC12w4PdW5ZRzPs6DHV35DMtmpWE4EWtSM2L3Ju3PLYQEmvVOqPmIlC6X4xh5a/VqSgmo1iecvjkEqoFsNzDvjmdgi+kptaZcGo1P94RyyL1ZMgnstvdrH5DxSf1uLRoqeIG/CespkKh/MLnhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124838; c=relaxed/simple; bh=iuXiQj1QfCWcO7aD9SX1p2T96F1was0Kl7DsckDZs4U=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=IRuD2ddFY2vkRhLSOq8GgpQxEpD2Bwt6wXr4Lz4Fmd2HikgB1IdOQkzGWVJvdTOa3ukR/RhcvJRUfUx4qozyl8w6GL8lNKaVQm5h+d9rsos88CiaY2SLoKTZHK9HDzxyipjZVs28/HXMCic4/qEO+1xYjW7rML2YFkU9yGnkKVU= 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=CuWv1ky4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/7tBdnmv; 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=1718124828; 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=BeBIWYQIai2fKHzsNfAY+5tN1mp/+/hwb+YbFgo46Zk=; b=CuWv1ky4dFaJMEE/M5gJzQvJkmIMoPzj7c3hl/QXfiRscPHuc3yLsTwa7Yut/qG9vZnZyH iSOazFYPWNSgdKZkM3p+0DQNACCzgk0MrqnuEt3X3TMHk+LPzpuYE4/8XLKcLvA5N1VXWd +sSc6S7sCtJHpMcRcQi2CAolaTVhDQML1BBblzq9w7f8zr5OmQyyLvxB5z9eYto/qyIjo9 Zq6XeEsoFtwwJnXxotNw2nQP9hL/Z0brN59e5GfTkLVjRBnTm+k3ZfeEimlUnoAk6gBeQs E4etjKjmG8c8TTx47bnIVnimdqEH1f3XPF4syYm1iei/L3eHcoFxTpMbZ09TNg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718124828; 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=BeBIWYQIai2fKHzsNfAY+5tN1mp/+/hwb+YbFgo46Zk=; b=/7tBdnmvfBbs2KZ4q4Ir/RwbvEtwNIKuWoUaB1HSI+cwNuhg/wN5uNCw/BgpwXPzKi0z+c PJwyMSEI574oPfBg== 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() macro Cc: "Borislav Petkov (AMD)" , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240607111701.8366-12-bp@kernel.org> References: <20240607111701.8366-12-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: <171812482767.10875.17199202190196674547.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: a6c7a6a18b10a4ac0913e7abdbdce928a2601bdb Gitweb: https://git.kernel.org/tip/a6c7a6a18b10a4ac0913e7abdbdce928a2601bdb Author: Borislav Petkov (AMD) AuthorDate: Fri, 07 Jun 2024 13:16:58 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 11 Jun 2024 18:25:00 +02:00 x86/alternative: Convert the asm ALTERNATIVE() macro Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20240607111701.8366-12-bp@kernel.org --- arch/x86/include/asm/alternative.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index fba12ad..31b9a47 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -422,24 +422,6 @@ void nop_func(void); * @newinstr. ".skip" directive takes care of proper instruction padding * in case @newinstr is longer than @oldinstr. */ -.macro ALTERNATIVE oldinstr, newinstr, ft_flags -140: - \oldinstr -141: - .skip -(((144f-143f)-(141b-140b)) > 0) * ((144f-143f)-(141b-140b)),0x90 -142: - - .pushsection .altinstructions,"a" - altinstr_entry 140b,143f,\ft_flags,142b-140b,144f-143f - .popsection - - .pushsection .altinstr_replacement,"ax" -143: - \newinstr -144: - .popsection -.endm - #define __N_ALTERNATIVE(oldinst, newinst, flag) \ 740: \ oldinst ; \ @@ -455,12 +437,10 @@ void nop_func(void); 744: \ .popsection ; - -.macro N_ALTERNATIVE oldinstr, newinstr, ft_flags +.macro ALTERNATIVE oldinstr, newinstr, ft_flags __N_ALTERNATIVE(\oldinstr, \newinstr, \ft_flags) .endm - #define old_len 141b-140b #define new_len1 144f-143f #define new_len2 145f-144f