From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 1A7CD36F8FE for ; Sun, 21 Jun 2026 14:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782052939; cv=none; b=Im53SPtD8KbgXG6nwX4RsVZERL7ldB6wKlZl0XZeQSj8Cpm/IRWZQN+FpRBS8yNKx5IvyZnpN6utZsSdxkjAZwzVjkqOhbL+NQuNh/Kt5nCC5uFH050R2y4CQOPahXAaXPhkiuMknBwmM7dSyw3Ucb1UQ+k0QNUx2YTwklsY45U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782052939; c=relaxed/simple; bh=6C5rUclzJp+Ckx7PrS5HUtYhzsRkORm7wGwlInooWSs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XRF2OGOSNJqta13dUKAPB4hI729kMrhmBiZPFNtOTzlko2vu7nd5Rcm3UzBS4NDXiTjy79bVU+lF16c24vx60Jh5lyF8n2h5nxw1znlqIYtiJyzoP6xmQZ1LDP4SDMFedGo2rLmsMWFy92Qqj8rPX8C9oiYsqI8/ELUsLwlP3NE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=w0I0lRLz; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="w0I0lRLz" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1782052936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jo4yKpWQJvtCgMJzbs6tyxAH6pE9PBA5QmbZc2R9zSQ=; b=w0I0lRLzqofKWL2uKgY/JdMSANbx6zCwltbvWlsU9VfF59KqbthUhMduK/ljprTSfaiEo8 44mM80OQpdKZvY1fGNN3xd32cJnOBQJJRakee4l2UoO4QXvEdbUf73/OjG3g5zd6W44IsV +zYJ4q9Jp/nF6DK70LRUgSUoPcWOXog= From: Thorsten Blum To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ard Biesheuvel , Nathan Chancellor , Nicolas Schier Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Thorsten Blum Subject: [PATCH 3/4] x86/boot/compressed: Mark process_mem_region() index __maybe_unused Date: Sun, 21 Jun 2026 16:41:20 +0200 Message-ID: <20260621144116.224010-9-thorsten.blum@linux.dev> In-Reply-To: <20260621144116.224010-6-thorsten.blum@linux.dev> References: <20260621144116.224010-6-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=820; i=thorsten.blum@linux.dev; h=from:subject; bh=6C5rUclzJp+Ckx7PrS5HUtYhzsRkORm7wGwlInooWSs=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFnmP3jz/ulyZaW9aD0qujl944lzjxTFux0jM4SmCtglC 0WUrzTpKGVhEONikBVTZHkw68cM39Kayk0mETth5rAygQxh4OIUgInc4mH4p2ceJCmybnG2ZuSv ub/WzOblyZSY+vNOf3JbQf3X8llKcQx/eJd0/8isjsucI+0Veju6wEJM7NFrtx9GP29Uqjd83O7 CBgA= X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT The local index variable i in process_mem_region() is unused when either CONFIG_MEMORY_HOTREMOVE or CONFIG_ACPI is disabled. Mark it __maybe_unused accordingly. Signed-off-by: Thorsten Blum --- arch/x86/boot/compressed/kaslr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index 9fb1d495c688..1d06d4bdaec4 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -593,7 +593,8 @@ static bool process_mem_region(struct mem_vector *region, unsigned long minimum, unsigned long image_size) { - int i; + int __maybe_unused i; + /* * If no immovable memory found, or MEMORY_HOTREMOVE disabled, * use @region directly.