Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp963668lqt; Fri, 7 Jun 2024 04:19:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXidcE33DkFAMGVeUtcaBIO4N69GljaKFBuyMQL73SHvZBi8aqy/KqPtAesOYLrv/0BUIHVoJq7rlXPRsFZa74KgPMqHJty6TATW6ezFQ== X-Google-Smtp-Source: AGHT+IHF8L+nA8PGzf5Cg+ZWtWfF7ciNG5k/uP9uRXWGPO7duLUSgYyCI9irbJ6x4el9K7fg4eAF X-Received: by 2002:a05:622a:86:b0:43a:f1f0:12f with SMTP id d75a77b69052e-44041cf4088mr22864911cf.59.1717759146096; Fri, 07 Jun 2024 04:19:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717759146; cv=pass; d=google.com; s=arc-20160816; b=uuyelbikGQKV/nzohmbSqsWnY1xmd4YTk4nS/dU/qL+RNpn8rIC6WvI6VYeAVF5z80 OFaqfwQdkUTZd9XWqiBtRB3UbgEIJ1t2/SeBhfTRc2XXO9Us17Vdu/IFX09FEdgU1JPW td8MnyNuAMQHdSqqHMHVHNdLfCSBhA2jS08tCufw0NR8VqSLYVmrYlWvwVIyd2ysNq61 esqP4ufItkXZbFUAO4o5SJvp1WN8+LKYcRcgiScgfXiv7CIjh8ZBooj2ChBUT+p0VvCf uE6Uo3AdO90Ousr61AHFyhqzDQ9qUs9fRPKVSJ+C591lOZjinbd9rB/7l2b3KhBTHQKQ M2vQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fcbN7YegEmgRJoshK0JWm/qKOzrq3TzAdPdmF2CGGs4=; fh=b+GcvI4Pcayc3mqYGvUYD/O2AEP50jeeZwnwIXNAGVQ=; b=wa53d8oXCLGpZMclnVXGOUAYAhrTtmu0THcEXG1tqVztjxjCWmDSPBEoH3DhpvNjEO 8Io2fOwgfgR3QpCAv5UCGc0zDR212a0EIb7MxamSr1Fttii3orOZwx0M/pRkafOSAI1U qaBzDhCardZmb+3T7P3dvNCxaDgFzfqrPLemdn+hu4Ant+mW4SGIIl+DDnw4fxTHF+U4 NVU3qCbs48KbnmGfeQTRXpb9Oj1lgb/82N6p+XtSYAM3qnQK6YB8D5DPM2/CggpcURs9 YqnmJcA1lHm0QIgvIyfrzpG2IK8BsCi80jwRyagLmyGtC0pZyKJkwNg3BxUWrsTT0ifb ZIAA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jAlGygxt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b817e1si38076241cf.747.2024.06.07.04.19.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 04:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jAlGygxt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-205888-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 C737F1C20F32 for ; Fri, 7 Jun 2024 11:19:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B5FA1940A2; Fri, 7 Jun 2024 11:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jAlGygxt" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8ADB5194088 for ; Fri, 7 Jun 2024 11:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759036; cv=none; b=KcR4GOAqUdV2CmkBGZev5PQXCcDlGm5sEnpp/c8Sdu9u+qX8++qyvPaFLvNDykLgkw899Rtpq3HkYl9s2X0Ptgq/VOsmiOa9zmXJurqUxqMi1iXLSpv4THfxyeDeH3Yb+Ouh9+Q8bx8GxpcF/C8GUYQjaEChENshL7PusFWuYc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717759036; c=relaxed/simple; bh=rn3s2RmxRTxbJSVhbZdiuz/L02U5NGxr5eXKw3dd/jk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=elCF1CXggKcSS4bU3zx88enZCzv8GmKj8/8YmnhQrhXVgBsEaXboRBjvTppfHw3lbx739P8oMroBzpxiHcFf49VyM0jIEc5J3eSEENMfQXQhAHFpzrrraGHGZ2Qw8aM7dXhW5ZgROVmdhWvKE15Vv0Q2tWfIIAQC60ylKirXUZ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jAlGygxt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9279CC32781; Fri, 7 Jun 2024 11:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717759036; bh=rn3s2RmxRTxbJSVhbZdiuz/L02U5NGxr5eXKw3dd/jk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jAlGygxt/5UT/TLCnemWs8OthpPmhH83tJBf3skKLcvb9c4BE5zfzBF0LAkvMkMqv KsIe6cq8tDQtCCxdCEbcyXnCSS0uOZ3eo5fKrpONoDB6zsRpNTcHGZu5goMHI8iY3M ihReNCHhOD/hEU80p0c5SC9ObZbBc9GeZ2p+H0tuYt+ZUZuwbo+BsX6hT2zhKHhhlt IHH8R0g3cBnyRVWzTU3+jLHlORJABSE7uRZvOn/C0iP7FxLu8qDOOdx92z4rYWa71+ Oye59vKSoGL4Gc6LqC5RwPh95xOUaUudpJvrs5gNukjhKT4I17mMNyIV+rNkWxfyNS +qVCuaALmJTdw== From: Borislav Petkov To: X86 ML Cc: LKML , "Borislav Petkov (AMD)" Subject: [PATCH v1 07/14] x86/alternative: Convert alternative_call() Date: Fri, 7 Jun 2024 13:16:54 +0200 Message-ID: <20240607111701.8366-8-bp@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240607111701.8366-1-bp@kernel.org> References: <20240607111701.8366-1-bp@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Borislav Petkov (AMD)" Signed-off-by: Borislav Petkov (AMD) --- 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 6a746811c602..b6597574fa43 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h @@ -349,11 +349,7 @@ static inline int alternatives_text_reserved(void *start, void *end) * suffix. */ #define alternative_call(oldfunc, newfunc, ft_flags, output, input...) \ - asm_inline volatile (ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ - : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) - -#define n_alternative_call(oldfunc, newfunc, ft_flags, output, input...) \ - asm_inline volatile (N_ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ + asm_inline volatile(N_ALTERNATIVE("call %c[old]", "call %c[new]", ft_flags) \ : output : [old] "i" (oldfunc), [new] "i" (newfunc), ## input) /* -- 2.43.0