Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2127544lqe; Tue, 9 Apr 2024 10:11:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1RJOVoC1dGkZdig6DU2e/oLamcho8e5ypo65qTkCcnGWhT+yXgw9reUAyvXu1+AJn/AhrgqfAOBj+V5O4dz39o97c/fNI/7MDIhxeWQ== X-Google-Smtp-Source: AGHT+IHItIXb1cdXkxcJXJptWs7yP6s7DTXjhAbTbN0dbrc/SXUylEfkRxMipxn6hIomIFW9VZFm X-Received: by 2002:a67:fb14:0:b0:476:e1b2:c9d2 with SMTP id d20-20020a67fb14000000b00476e1b2c9d2mr2393781vsr.14.1712682704604; Tue, 09 Apr 2024 10:11:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712682704; cv=pass; d=google.com; s=arc-20160816; b=tu7feD8wexJcMSZg7ypQcPmj1JI+2dY/jkCBHuGn7A3qgbayNvGxr9JcXnN+6Sfk8P HfHL53GruefekF+Ld7fqn6hOYrkRmEU6lCMZsBmJhoeHZFdVBqVxfwJ/vooPEL1xqdJh l5HOEc34DZ8kpr/GWJ8rE26My1P6GaJZTJHQMD/WkEb3oZh+QYgnQ90ouYy2wNjJTNgg SyRNJvm30uSthgmlpUI+QZrkb4P/vdg52RjsIyb8UmcI/yMiWTHtDsOoHKWMJpF/zpH1 VqNhhvXuF90q8zS0dv9Y0yr7/bR/Bqw7gbvXle0KJwFxUjF8307zuoQ+jos2okMiZr/b 4sdw== 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=egqC4IkOkF+hknagc0QL/ggqE6BwaYEGometKi3CISQ=; fh=rR8KC3MdVVkWqW1DLWNOtxrtJ4e446FIKUSpWnemrcA=; b=RRuVgIRTpJ7KInJTr++DJD62/6iKfn4m7zy4v0ZD9QS0tkB6fa3tXy0YFZGOxNXa0o 9gCK+WuprYlcaGHwtzEmizv7Nwd7JjKUeSUsb+hZU7FUBvE3fnKJ59zWYDX+A3LE9jPd dZlHJHcoLD9RUlK9TU8tO5/sn6Bk+TpDVk2Tm4Wj0xsEP3nScL0I9Z84bFeqA+ZcvoVm gfrDoHbp/Prnfh4ioB8TiiywAaGNniHO1Z74Kxl7/5TPBHo2CKQ10CavTnk8dacu92yH Q1EerbJ5CaQFyCtzDse33pUns5NmHO9JMGDSE7zU4LMtMKoH0yvn61CbPW1scyIYPLyO PDiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LCOQEQe3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gV4BYXzp; 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-137373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137373-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j9-20020a0561023e0900b00476dcb018d8si1583473vsv.226.2024.04.09.10.11.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 10:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137373-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=@linutronix.de header.s=2020 header.b=LCOQEQe3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gV4BYXzp; 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-137373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137373-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 1DF351C225B6 for ; Tue, 9 Apr 2024 17:11:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16EA9155747; Tue, 9 Apr 2024 17:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LCOQEQe3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gV4BYXzp" 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 CD7B912E1D5; Tue, 9 Apr 2024 17:11:31 +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=1712682693; cv=none; b=W9u4fogdHVg4m0b2rcNYNd1quqjL0ZzkFJVLCEKrNvN3aHL1evtlw4WLSqKpFHygUmywB+sFJOv9ZW1q4Th5rzYkmMLbR/TFBy4P5KQ3rK/g8BdDp71Dp/cxrnTlPcKx/+Nhj3AX8+Qwi6yeYgpbhY4C++7SODScXF7J9HUdorI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712682693; c=relaxed/simple; bh=xe2zX+oUmv3OI47f/cJgV4UYuKjvDV79GTN7zFkvctw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=cdK3kkF3NihC+RsFWub7QDm2RFmbPrUbMjjTfRQ86PNxHf+HRMvbTiNFnF5974GKbZ9tdLKemb7pTBqvVMHYjto8Fjb0lZ4yR356aUZ/THin3w0rLgvR9rkU6ORh+cGXm40D2zQ0uWcZYckMj4WPeFU4ygSMXBdnhv+SKob/tzw= 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=LCOQEQe3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gV4BYXzp; 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, 09 Apr 2024 17:11:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712682689; 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=egqC4IkOkF+hknagc0QL/ggqE6BwaYEGometKi3CISQ=; b=LCOQEQe3jOtnhLHE6RrI0yGjFW4cund1LgCOUy+0zTbDXSEtTiIyEi3nFs/SQhjixTumcb JORaSNKs3U3N3W/ps+f09vSs7x4OwqDuolLJSjuu8F198k5Txwi8UJ35+tc1cs17VwNrrq vWJyIFFHy88PCA6Z3bsZCz1UGdTvkmu/BnkVInqVZV7TVs32y7pJ6J1ufoyVrOO5oHIcL6 GbGe5UMX9DaXm74xynzIjJRMnd6QLTqSNlmgloWWKcwn5qFSEsSEZHBqy124reXHO3jKuJ k0fFQKz3UdHY+UEXweEdtNoOHSDsepfC4xlVeljAUv8JnFeBODw3NPmA3YNSeg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712682689; 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=egqC4IkOkF+hknagc0QL/ggqE6BwaYEGometKi3CISQ=; b=gV4BYXzplfxIsOXqxrQRGEOJQTa17ABcC6xrxioOBHcelgxSDdIqsGrSi5NjnZ43475ln/ Kduq3axFFV4wTwCQ== 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/alternatives: Sort local vars in apply_alternatives() Cc: "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240130105941.19707-5-bp@alien8.de> References: <20240130105941.19707-5-bp@alien8.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171268268870.10875.4199522237933126333.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: 05d277c9a9023e11d2f30a994bde08b854af52a0 Gitweb: https://git.kernel.org/tip/05d277c9a9023e11d2f30a994bde08b854af52a0 Author: Borislav Petkov (AMD) AuthorDate: Tue, 30 Jan 2024 11:59:41 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 09 Apr 2024 18:16:57 +02:00 x86/alternatives: Sort local vars in apply_alternatives() In a reverse x-mas tree. No functional changes. Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20240130105941.19707-5-bp@alien8.de --- 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 67dd7c3..7555c15 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -445,9 +445,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 *start, struct alt_instr *end) { - struct alt_instr *a; - u8 *instr, *replacement; u8 insn_buff[MAX_PATCH_LEN]; + u8 *instr, *replacement; + struct alt_instr *a; DPRINTK(ALT, "alt table %px, -> %px", start, end);