Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp484804lqp; Tue, 11 Jun 2024 09:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7coC0SfAEvuHZ1cWiKny7PwetskB6bYQYGecNveCU2/HfskxpilVQNozG4Zf5B+++Q/yMvAplgeTTTUlcQ82L0hM0lYD9OIUSbokbWw== X-Google-Smtp-Source: AGHT+IFmfL7V88dyOr1HY9cxjF+ayQhE4GRxHj6BC2msv520HNRCf8sBYLhmI9uQCNXI3dLdCvIM X-Received: by 2002:a05:6830:1143:b0:6f9:a852:e50a with SMTP id 46e09a7af769-6f9a852ea39mr7265183a34.5.1718124948194; Tue, 11 Jun 2024 09:55:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718124948; cv=pass; d=google.com; s=arc-20160816; b=iNsa25eTRODuvUdMhBUZ3VRF7IbC8z0NieCrN6tP0xaXhqfpKM8+YQSVuv9FNBsohV 9w8ieLNiV8SaslAniKUMVAEGfN8lBAnC4QtosHSaKC4sfIE0ogoCcyo3lxmWsoyFyfKJ Iu4kfGKbj9x+sGzqqLhHMLTxNBclvingeQBKXWvXXT3k/1T09mf3c7XEmBQi/dypaLZJ UYRMc9VRr3WCn1oMzcRbrGqa/LtDh9yApD/MPQwFTRWZKfyMTu0q/R6Ak8G3mq/l6wv3 0HGOo1iuHWKltP/MqYuJbXEQkjB4TqA9OHKhBeNqfMj25QD2yHfTWUag2B7Nkhikd1cq Ixdw== 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=iYBz7lPUZPRKZrKxm7qGMPAKO4p1PUgrNXFucCgBrc4=; fh=QTzL0XpWv5tiFAeTRD/6A61kjU0JIaeKc+DG+Jn+lH4=; b=RpnrPi/arwS63aN/3bh53R8BAOhpfpiIXvHEf3xpoVs3TceQjHETI6A1DqTfp4ObCY ZFNejqvaF1otPBOjG1LGUENkxaXVXUV6O/Sm5L3+SLEKJnaUpLsBR15l3gDbN4pIiWvq bdP+4CsdhjbY4xf51CwBsCh7CTWJYpZLuKOnrViy5O7kX/sZGRVh4w1PHuvFaWODdL4b 2iRrKzMxKZAjGFX25YdwK9sD5KK+Ple3b07PMO+Y2zXscCZgU2bBW+MPJ0AwCAj76JlY fq/JejmLTIvnE+izKo1oGWvutC6s/mhwo0/MkEfwPaIiWAE8DFhW6BjMcyQ12DFCOcPB uiew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OifOgMsA; 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-210289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210289-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-7979c8734a9si361361885a.205.2024.06.11.09.55.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210289-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=OifOgMsA; 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-210289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210289-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 D45F21C222EC for ; Tue, 11 Jun 2024 16:55:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DDB27E572; Tue, 11 Jun 2024 16:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="OifOgMsA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="7DaS91mR" 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 747336EB7C; Tue, 11 Jun 2024 16:54:00 +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=1718124842; cv=none; b=gYWcFdP+Fb8wtuNxtDCxkn4kUj2IcrRAOuPTe0YvO31RW4P4RJ2RBitdff9sXJVfbocZbGdA7qtxdCYkA+X9GFKzHHylGmlnMYVo3ONRly7o0xK11XBrLJSihuBMliFddcUtoaY2ArbFGNJDy2HXPdiYgn5/2Xvw5H0FXvJUy+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718124842; c=relaxed/simple; bh=2jeDWgdHz49fRwDVRqRwrJjU0yFBKKLACKPDD56mS64=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=TDbdsfwGStjrcKPDntXE3WWrLMfcH2EfR5AyIKdfxuY/9ZhWFaWG+pilOySZkJaXVZ2tkCd9l5beIfBCZK24gf1ZjkNHBfXzOmBwtNAdZcM0edweBgqKbpK8NTCXXPrkwyNMOywmBktk7foHxOpwmr9EroPaqVnti/ht2PQwT2I= 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=OifOgMsA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=7DaS91mR; 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=iYBz7lPUZPRKZrKxm7qGMPAKO4p1PUgrNXFucCgBrc4=; b=OifOgMsAM3WEu8kUQJLQiEGt+YmaEuW5APdW4dIH0uTB6mmPWOUeKEk9MZx6IhqTOHTZfP 49dER3IpgpQquo74frb2Ox6ohlDCVGhNZSfeynCAeVPBi36kUa6ixfxE9uGcLdZ5xKE5Fy KIj9cUg8yT8fOGbufH0/xEs1+jXs99fAirRIvJVx6orA2tOl7utWqaFNhdYf2PPDN3vuKQ 9R+BZjXEOWkW0vPNPMf5LliwU2a6m0LeKFa+UVY5XWR1LNMojpC5b2mMtXAdsoiQfB46Bp vqtNmLLq+wiYchgfkdTnoFGShJp/gbSk5CpZdWJz1dbWemw5pQvU+xFnBCg/2w== 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=iYBz7lPUZPRKZrKxm7qGMPAKO4p1PUgrNXFucCgBrc4=; b=7DaS91mRc/U6wbx4YAmodpSV+Da9vYoBf57TUgfo0B685VG2Kn5njfEcTfhtTLAq9bAXah GaJZfmCKN9pCIcAQ== 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_call_2() Cc: "Borislav Petkov (AMD)" , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240607111701.8366-9-bp@kernel.org> References: <20240607111701.8366-9-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: <171812482844.10875.6372075166561515978.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: 719ac02347ee5f94a9f3d5c2fe84640f855432a9 Gitweb: https://git.kernel.org/tip/719ac02347ee5f94a9f3d5c2fe84640f855432a9 Author: Borislav Petkov (AMD) AuthorDate: Fri, 07 Jun 2024 13:16:55 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 11 Jun 2024 18:17:10 +02:00 x86/alternative: Convert alternative_call_2() Signed-off-by: Borislav Petkov (AMD) Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20240607111701.8366-9-bp@kernel.org --- arch/x86/include/asm/alternative.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index b659757..bc260f2 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -358,23 +358,14 @@ static inline int alternatives_text_reserved(void *start, void *end) * Otherwise, if CPU has feature1, function1 is used. * Otherwise, old function is used. */ -#define alternative_call_2(oldfunc, newfunc1, ft_flags1, newfunc2, ft_flags2, \ - output, input...) \ - asm_inline volatile (ALTERNATIVE_2("call %c[old]", "call %c[new1]", ft_flags1, \ - "call %c[new2]", ft_flags2) \ - : output, ASM_CALL_CONSTRAINT \ - : [old] "i" (oldfunc), [new1] "i" (newfunc1), \ +#define alternative_call_2(oldfunc, newfunc1, ft_flags1, newfunc2, ft_flags2, \ + output, input...) \ + asm_inline volatile(N_ALTERNATIVE_2("call %c[old]", "call %c[new1]", ft_flags1, \ + "call %c[new2]", ft_flags2) \ + : output, ASM_CALL_CONSTRAINT \ + : [old] "i" (oldfunc), [new1] "i" (newfunc1), \ [new2] "i" (newfunc2), ## input) -#define n_alternative_call_2(oldfunc, newfunc1, ft_flags1, newfunc2, ft_flags2, \ - output, input...) \ - asm_inline volatile (N_ALTERNATIVE_2("call %c[old]", "call %c[new1]", ft_flags1,\ - "call %c[new2]", ft_flags2) \ - : output, ASM_CALL_CONSTRAINT \ - : [old] "i" (oldfunc), [new1] "i" (newfunc1), \ - [new2] "i" (newfunc2), ## input) - - /* * use this macro(s) if you need more than one output parameter * in alternative_io