Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp484697lqp; Tue, 11 Jun 2024 09:55:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3rO+bsm/VcWkO0pB6itL/eK/HjwmnEihoxH1NMsPb5kIjZrX45zD8ABzir+T+7DT6+eU+ERkd9Xryl3x1xZQ3j6I6Lzw5bcPPQXdS1A== X-Google-Smtp-Source: AGHT+IGAO6MLDDD1RFTOKTNM13VmJSqdxSa8z0IYCRn5z4flc9hbg++yRMiRqEyuO5DLCqs9DufF X-Received: by 2002:a05:620a:3f85:b0:795:4b87:b2c9 with SMTP id af79cd13be357-797c32a1e02mr472914385a.39.1718124935274; Tue, 11 Jun 2024 09:55:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718124935; cv=pass; d=google.com; s=arc-20160816; b=NTqWM/uug6QekVlXwpX0u8FtjQ9TZOgxFZ37kP4PMTVOQvBW46+HarRxty2OgDKtOq N6wJIgvUmmfFAN/8Hty5hCvsZRnE7MdfgyEF65xmVkxb1SZcgb5K9l6BnOMtbQSoj1ns IO/rErtAO5b0jBduiGEaRxhGnobvXGyk6h/V+MeraXzr3R2ku7T6WHtlh7g3BFz0yjw7 Mo4ujESrb1MQ5EKV9nr3FfndCd97ST2rnIrEbZ+UQBe5tzS33C+491eLBqSDJIxOFFZH v/XFaB7eQgeHQR/y+wqeNJSFx/gCwB8xWA76m/DtyhsqiMXj6Dz6WM1aPcNHTNv3NIBB hDQA== 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=NPEmiG0J/+M6PsxFaTQGoLa/PkP8fCWdZt5TMfxUXUU=; fh=QTzL0XpWv5tiFAeTRD/6A61kjU0JIaeKc+DG+Jn+lH4=; b=YGKkStmni8oKPdALMT6NXHznkUCJTb4/qYV0pgb/MlSyAJqA4D/RmYv8KMHWk2jq4K c+RqvsCPbqBSXU9KWwper+LKnQ6Icb6QRnrJoSe21DE1Q0QkNnevp/pFLHsdRNc2KQNB AGYAHNGUtMTmIIzN2pHITaK5ub1adNRa4CG0XwnxvO/fBvb6Ja6jQJu4BHGPvCbkv/gX pTJQU/f6QZwwtBqDKOWl0jB2LHh5J4IyMJZW7ulmRsA2aKj1NIO3/nVOPGBloFiBhsXa SFy53bl7OAAeyWgbM0qz1452SLVN+vE8ZNfVo5ax3+VACpjkBXmNZhcKAj1ptPCUNJHk S1Dg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ea7tWUBc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=fI+PPqSl; 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-210287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210287-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7954a02f70asi979775985a.700.2024.06.11.09.55.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:55:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210287-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=@linutronix.de header.s=2020 header.b=ea7tWUBc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=fI+PPqSl; 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-210287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210287-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9B6C81C20BC6 for ; Tue, 11 Jun 2024 16:55:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A09A4D8B6; Tue, 11 Jun 2024 16:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ea7tWUBc"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fI+PPqSl" 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 C356B54F87; Tue, 11 Jun 2024 16:53:59 +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=1718124841; cv=none; b=OTiPEgOdVmCb8ujKQqcS/ZM7Z9DrZZKGKozOqRL6E4P8j1nDzV8oPeo1BHqo0lGSkjvCJyv2DJjpkz7/x0WEpcGGzkSLimyQ2mbj3avCIeIgU7RmKWAqRtqY6gpKfqubBWD2TCbT9MW77k2tj9rE108Jr7aAc2al1Rc+ZBQQSpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124841; c=relaxed/simple; bh=HaAST8bKT2MLYLbSME38/FHVe10PQTlJWtlIdz1pzsU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=q6fPfPc+shosGZKulnoJQcud/p+EfWSLx/YNOZP3tZvsQkRcu+l9mNsPKnoUXvGfcGKcQE2qC1dxdwKwfNqF4NJZypZYxSyuoT4YOpLtptZ+d3zS98LCf6KHutrUCOfzmDQTxSZLzBT5LMOszVdf1oiRYRR7akTf9p4FwyeI8/0= 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=ea7tWUBc; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fI+PPqSl; 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:48 -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=NPEmiG0J/+M6PsxFaTQGoLa/PkP8fCWdZt5TMfxUXUU=; b=ea7tWUBcJsh9QlYrjilsWTJBmB/8qHNpIDl57aHgFumKN/y/uwOQc4n9bRhWs8c5FaiFvP eXWgqDDDuinmRaYYM9/W64RB475tsYVWrUqaPCblKNKoIwRgJ/FKleZTF9v4RTwVXU7cOs ToRUGlFTwsq6dGnvJaSvZ49shk/h+h7P2uN1KGUFI1gyV8LlH/Dl0KzzekWkEdPHo1bb96 uSor1mjg96fVSXV755UsAtZ5vKNi9KTOdPSNdu+VcjS4TspvajYqxfT7wTyUtaFgyTbPj9 Ntd1/drbu+AVTEcWMHDcz1OXigjo+c+721/3QFLFkZomSdHbtK8eIVPAf+5b5g== 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=NPEmiG0J/+M6PsxFaTQGoLa/PkP8fCWdZt5TMfxUXUU=; b=fI+PPqSlIGe2nQ5JQKQAT+sAMSZWswJaIUrPrzBtPDTNQKUNjBCoxuomIxcE6PZup9iy9O dXAW6klfhDhepWCg== 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 ALTERNATIVE_TERNARY() Cc: "Borislav Petkov (AMD)" , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240607111701.8366-10-bp@kernel.org> References: <20240607111701.8366-10-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: <171812482818.10875.11347382340489705696.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: d2d302b1bbe28dba3bd8da855ac9c16aa5dbd00e Gitweb: https://git.kernel.org/tip/d2d302b1bbe28dba3bd8da855ac9c16aa5dbd00e Author: Borislav Petkov (AMD) AuthorDate: Fri, 07 Jun 2024 13:16:56 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 11 Jun 2024 18:20:41 +02:00 x86/alternative: Convert ALTERNATIVE_TERNARY() The C macro. Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20240607111701.8366-10-bp@kernel.org --- arch/x86/include/asm/alternative.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index bc260f2..007baab 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -274,15 +274,9 @@ static inline int alternatives_text_reserved(void *start, void *end) /* If @feature is set, patch in @newinstr_yes, otherwise @newinstr_no. */ #define ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \ - ALTERNATIVE_2(oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \ - newinstr_yes, ft_flags) - -/* If @feature is set, patch in @newinstr_yes, otherwise @newinstr_no. */ -#define N_ALTERNATIVE_TERNARY(oldinstr, ft_flags, newinstr_yes, newinstr_no) \ N_ALTERNATIVE_2(oldinstr, newinstr_no, X86_FEATURE_ALWAYS, \ newinstr_yes, ft_flags) - #define ALTERNATIVE_3(oldinsn, newinsn1, ft_flags1, newinsn2, ft_flags2, \ newinsn3, ft_flags3) \ OLDINSTR_3(oldinsn, 1, 2, 3) \