Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp489562lqp; Tue, 11 Jun 2024 10:02:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0NeBRfTcnn0pK67u5ZlE5MDAKpwiwEp6jFYGp9L6UGXFQoIvySCezocYmGVQFIk4qT/N/knhxwgowzYH7ob9HSl40Lj5g0+bJy1hDWQ== X-Google-Smtp-Source: AGHT+IHGtFxEpwZqEfgh2roIL2so+693VNXw7kq35LvID7uXqMqMKC+ogselRjVrrNskMZioJiA7 X-Received: by 2002:a05:6a20:7344:b0:1b6:73b1:b157 with SMTP id adf61e73a8af0-1b673b1e4b7mr8475332637.36.1718125379274; Tue, 11 Jun 2024 10:02:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718125379; cv=pass; d=google.com; s=arc-20160816; b=f3dcFhAApyeG9+o3wMAz7SaLBWHB0HtBC0Ani6BQTb8nDCpcv51lbIRxcKUE3HwFw1 7w+Rv/A+7hfce00AqS5zXCh7ttBd1RW+Z5mknT/IDuXLsCvPIt48Jz+Z5HNOEa+/GuU4 +YzHU1iDJKcLYirnT8vDRAdjuhZKV9Q8I2mq1+UmnJKqMafeD/kIxsClnuYEb5iRo/J6 RcMYYCFaT8MxmJyltFRINCjgE+ZtMHgy8XAjjLAJzGwhxK92479WD7Y4uYRk1/fE7vMt 7mwXTd2o3uZVzPsWS5sa74dNAFSsyZJtwdCpKNGxs/7qdcBAWFZM25WJaugMTZMiWtXu 3Wdg== 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=J3FIPocLkXF5f7KbGC7RnGZS8G5klhHGy6AyfvCGWCs=; fh=QTzL0XpWv5tiFAeTRD/6A61kjU0JIaeKc+DG+Jn+lH4=; b=Q6cxnGjwdB6OhUsSku9VwXEYNsE9c4fvtYkcx1cTcQpEHcJe38Y0+umOiX7oJmjqeZ FyAfIvaDe/c3fk0buHI/drKrG9UZrK1LG6OlgsFO3LZ3zQKXIKk1IdSerU3zRdgFzYqm PTUwrNGPfXnjL5fSL0DpFvdsCYku01fzgWBYDnrsIiK51S+wk5/ZfWi+CMaeUTB2pV4d TJbmxf7Mh0Ld7XEGlkJLnuaVhibMySqej6xell1vpIBqaGT7CWUazhyeW5csMvmlfPNd NC9/wXTH7sLlWgjhAPy2RBSSs5LCQdCHzxBVpIxWh+d3KSjhmTc/aAEfJQ0W7z8lBzoK dahA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1oxPbEkT; 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-210288-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e42cf4f31asi7410671a12.416.2024.06.11.10.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 10:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210288-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1oxPbEkT; 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-210288-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210288-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D43C428C8F7 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 6320178C8C; 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="1oxPbEkT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SoNNTMx7" 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 E1CA25F870; 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=t/Y4uIAFg/hhPVfd93DhPZJXX3imNUMriS1pRl5YfDHOATozIqZiOQmRafV1kbpD9KsACeonV9UaQ9r24uZQdlXhPGcJJY3amfpwMHoaTb15AE512irIz/JYvKId970cCi2qmwbR/KMNo2j+Km0PlSH0CRIESVpfXGWXPAgOxmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124841; c=relaxed/simple; bh=jwIQR1DsU02huks9/aVKbhDwo5RFGf5+8/kqprO2kt4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=jrRf+7TxnclWvfpfA8REV8zB3M2SAgdfrev4T9K97qVNqLl0sH/5h7CyhQ7aYyV+7JnHX9+xbZbmIXzc/AgO//7iZKar4GhMk+fogQNp85UlaV2wi+VYTIK2lIgzak/OCjcwBI6eFpyAhuo6XUxkntPSh9a6J9B9McCLCmDx0MU= 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=1oxPbEkT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=SoNNTMx7; 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:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1718124829; 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=J3FIPocLkXF5f7KbGC7RnGZS8G5klhHGy6AyfvCGWCs=; b=1oxPbEkT8EPVW37hi2h099+yjX3KPeveZETQsJtw3AG7VtKlHrGcJB37VmQKvQEzKKu1d2 YOdRrt9PUYOFBUrBMWRHDPOS+ABCE++SLSnUTlZoZMi3OKxTfIu6F3PkY78w+uOrCxg+Jr 8HaiWxKoqI1RwnNBIFRln29dHZq98GD+AYBUyLYWKFChaJPwJKUlCOOpuT/MCK/P/K49Or yDBqgACvwyoi+GkNliwvj104xXfxNBrj2VCkn3iEa0uP31hnhMJHfPv745yutB5DOXIm6w SdyTTPROL3JfjYXQhBBzK5iaBHYxrIPgqiaX/FWeeOzn67ShQipCemwInkoEUw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1718124829; 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=J3FIPocLkXF5f7KbGC7RnGZS8G5klhHGy6AyfvCGWCs=; b=SoNNTMx7PWVQsOgqhaJPAYhvZj85wGvQuFouzk2prrzSvoWPy2KeFNxan9hmI6kfwkYz1d roA+txMw8VrcKsAg== 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_input() Cc: "Borislav Petkov (AMD)" , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240607111701.8366-6-bp@kernel.org> References: <20240607111701.8366-6-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: <171812482917.10875.6160530676593967009.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: bb91576965e79d17e8e23fccdef91c4bf09d1a74 Gitweb: https://git.kernel.org/tip/bb91576965e79d17e8e23fccdef91c4bf09d1a74 Author: Borislav Petkov (AMD) AuthorDate: Fri, 07 Jun 2024 13:16:52 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 11 Jun 2024 18:09:27 +02:00 x86/alternative: Convert alternative_input() Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20240607111701.8366-6-bp@kernel.org --- 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 21ead5d..428d6ef 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -330,7 +330,7 @@ static inline int alternatives_text_reserved(void *start, void *end) * Leaving an unused argument 0 to keep API compatibility. */ #define alternative_input(oldinstr, newinstr, ft_flags, input...) \ - asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, ft_flags) \ + asm_inline volatile(N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ : : "i" (0), ## input) /* Like alternative_input, but with a single output argument */ @@ -356,10 +356,6 @@ static inline int alternatives_text_reserved(void *start, void *end) asm_inline volatile (ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) -#define n_alternative_input(oldinstr, newinstr, ft_flags, input...) \ - asm_inline volatile (N_ALTERNATIVE(oldinstr, newinstr, ft_flags) \ - : : "i" (0), ## input) - #define n_alternative_call(oldfunc, newfunc, ft_flags, output, input...) \ asm_inline volatile (N_ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input)