Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp928583rdb; Tue, 30 Jan 2024 03:01:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxovJcH/mnenUmB1FXfUAlLLBGZdbH6/JU1xHyyRPGhzo9za8pnviQJLKYWcHqj6MHsw07 X-Received: by 2002:a05:622a:100c:b0:42a:3942:642b with SMTP id d12-20020a05622a100c00b0042a3942642bmr10510621qte.70.1706612498937; Tue, 30 Jan 2024 03:01:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706612498; cv=pass; d=google.com; s=arc-20160816; b=aR+vZhlVU6bRH+scuX7L3yxn3OKfuiuCV0J8YrQbeQElLiskTCPUEXFt0phJJNPWeB cBguguVfbPL+4OVFVNGoUu/fwrF+O+/4biPK69aZe9OU/OZwh8yNR48XXIJcqZA9o8IH FXJcRc4r+0FK0XIH79Li+99MPAQxD5OisoENJ826TB8MtwW+ijb4kWE90l2xOkaFMP82 fy4sGG2S4qCtUYWMp5RJQahEBS3ezFIWxJ0hAzFKunOCZKQS0JcqfHaxtNSe6/4K0JIF DJnLrIpO+Q83OFkwvITpw0lEEq6OXK4srzXezNRk9+DFsYtNBWsNo7EDkQVE/yR6zD2D 3X8g== 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=Nk//SKYULprYZKz6Aag3i4AER9JmEF0nplw8l6pga+E=; fh=gL8iKWYz+5Gj006D9LUvWYS+TWLN0CkoSVsKmJTYNn0=; b=WQf0yF1E/K6gCm++XV8SAUP3CIMqdLbGW1/+rYK81i9keuEncRt9IhsQo05YVS67Uz cVGxqOBj/p1lszU1t9yFnhQX9O4oKnAGkMouOSrlnnFkhom2nkl9daaHWhxpSuRFo0D+ wM6SHJcpH7tOLI0LPYKV7+eAfRwDC32vvxGEKGWYs+bDOLiOcFU+g8zjTfSNDqK43C6p V8kT/aWXYStd2NZRqi7dmDa81Y9wIcnliB3AlL3XJg6F2YOZK98pOBUVFRl+/6nvlW0X IiCxSmJZ7A1sUgHDvD7tDin3B33pkQL0ollI4twp2KNxsvo4nOuu0Na4at4GsNmL+9vh nwmw== ARC-Authentication-Results: i=2; mx.google.com; dkim=neutral (body hash did not verify) header.i=@alien8.de header.s=alien8 header.b=ksB+8sP2; arc=pass (i=1 spf=pass spfdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-44446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t23-20020a05622a181700b0042a99face25si6187234qtc.354.2024.01.30.03.01.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 03:01:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44446-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=neutral (body hash did not verify) header.i=@alien8.de header.s=alien8 header.b=ksB+8sP2; arc=pass (i=1 spf=pass spfdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-44446-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44446-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.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 AE6F11C20899 for ; Tue, 30 Jan 2024 11:01:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95B6D67E78; Tue, 30 Jan 2024 11:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="ksB+8sP2" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 4B64D67E63 for ; Tue, 30 Jan 2024 11:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706612416; cv=none; b=UkU104PO5+lk8vwWHTVkL7D3knYd45WZNdH6Gv4V4iXBKrOy3trJ+WA/HvSA/VEPoqqEGwxNP1cGeMMacunh3gJgljvtPmPqmIQgjmPDab4+9EZtbgzlTOlGTU32IGub+Fai0VDQNxfTG4YrCd/K1B/UsS5x+9dP/vBQ1s39zLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706612416; c=relaxed/simple; bh=iZE2cJ+UUdAouN6yh05MZbqDS0n/dNAjBnlGvlNnGZ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nBDfJIdWj8JHDP4uYRfqM83Ry+XB3Wegd2bfvxjT117/wiTTWjyLUcNoGDTeGVqFxn5AWykhuOHsarTtu13KVBE5WbkNj9E+CuRW82k0VNh9n1xUd9LPVjKJVIhCUGw1AI1GHsjusiGZLnr4+39OJSxa9sDXa2e2SveKNLQYYx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=fail (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=ksB+8sP2 reason="signature verification failed"; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 6302440E0205; Tue, 30 Jan 2024 11:00:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=fail (4096-bit key) reason="fail (body has been altered)" header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ca8CsOTBOhjH; Tue, 30 Jan 2024 11:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1706612411; bh=RoNfl/PZJS4s6CCR7YHy3tG03HlOLbZeqL1F+quJhz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ksB+8sP2xf8kWs2Ebc5SwExLY6g1pvpCRQl4iNU+U30tU19CH7boN+YZpymBmIbp6 BNw5OhJTQo/urOeoNcwv6Wa8zHBGi2CcP3kA4Idh7ZELmtOK1tsmAABiVz2nQAuR88 lKiGYtpF5FBNtqSpkYJMyks/vAmHJKsvAxYuRg3MLda88z70bz1nRsaVgDsvDoJjmi WGTjigW+GhhvUnUBjt0UgvR+o5qP6Ck49Z+7tvm5tVAV2nO1fQ4B1PcKE59hi2P5Ae 3RTjdOrlpZIAXtZ4YWbZJ/t0hBLBFKVgiCTuZRxungRMA6DGYgeU4p+Oy1uDb6zKhp r3QE69jRr3e+Jjcq/aBHpGew1CcHvnEZO4Tw0WC4x0KmOrTu09avJxmiTLz+YPkNIt eb7MdS6aNM/IObRGFxBWmGPOJe9mN4fmT/EGUqHoPByxU6fLyTjGD1FL8qzx+sokjq 9AI/2RV7bD76I6HaDlpmN2z5NBwYT2MziRl4TNGPThLGcWKXwLsf4cGgQlS7v+lOoA TdsniwDQjhZVlUT15ggyxUpY2LnYjDn1XF18UsfB6TKa/o3iWpqnZkCpmPOucpV+3p ylzP6F8O4vFoUqyw8LEKSfJ11QroiyeDKZOJ5dg+HfiULQ9r9GGTK6nRSDhCTWGPIr OSIv0t0HmvMC8N3yBGXvES+s= Received: from zn.tnic (pd953033e.dip0.t-ipconnect.de [217.83.3.62]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 25BDE40E01BB; Tue, 30 Jan 2024 11:00:08 +0000 (UTC) From: Borislav Petkov To: X86 ML Cc: Paul Gortmaker , LKML Subject: [PATCH 4/4] x86/alternatives: Sort local vars in apply_alternatives() Date: Tue, 30 Jan 2024 11:59:41 +0100 Message-ID: <20240130105941.19707-5-bp@alien8.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240130105941.19707-1-bp@alien8.de> References: <20240130105941.19707-1-bp@alien8.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: "Borislav Petkov (AMD)" In a reverse x-mas tree. No functional changes. Signed-off-by: Borislav Petkov (AMD) --- arch/x86/kernel/alternative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.= c index 68ee46c379c1..ee0f681ae107 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -440,9 +440,9 @@ static int alt_replace_call(u8 *instr, u8 *insn_buff,= struct alt_instr *a) void __init_or_module noinline apply_alternatives(struct alt_instr *star= t, struct alt_instr *end) { - struct alt_instr *a; - u8 *instr, *replacement; u8 insn_buff[MAX_PATCH_LEN]; + u8 *instr, *replacement; + struct alt_instr *a; =20 DPRINTK(ALT, "alt table %px, -> %px", start, end); =20 --=20 2.43.0