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 BFB7A3624C2 for ; Wed, 24 Jun 2026 12:03:34 +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=1782302616; cv=none; b=SKM40LFeVOMbKm4gG2gV/zvclKWgQKlc4gRpn1SZCRFJw+QmnLJh3mKQgkGDpbEYXyC82xXtz01jZzEfrxWENGOXxaBpxW9DMefxWfSQrbX2zWOR+X+P7w5QoT2QO5EPhUACIPA9ByEwRyHNNSqW8zGybiU/yu/jAVSJK87f0KA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782302616; c=relaxed/simple; bh=gC8Diiw8kQ0CRjnkDCPrq7waUXsQAOKvFhFfdR0hYoY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bTfX2c7X2knsk1HnuDOli1wdcXGMikcUwcDGSGryxC3wZXU6SalZnHnMk7ujNWyfDsXM0ozWmJphZlxVq246pA5meQmazpP0PdALnliC5Q1ThrgD4fFVl4L9ki4xMTBdYFjb9oNzRRynITQlKTnnDzMS8YexGF6I9+rrQ2As4pw= 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=fuusO+Ll; 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="fuusO+Ll" 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=1782302612; 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=It+D+HUBaJtD1mnbIlhfJaDTkkTeZ4uYe4Ljhbx7Hj4=; b=fuusO+LlxDeQVKl3e+ucy/BzDGRJcJn9nk+fTdaNqibMbqEumHyo+jQSs7jqAYf4lToBbS 8Nym1KyrJK+tsp6O1wqiNOIB4I+BljIsfrJy0NAg6YBsmGTjcFI9qGtqRygjfyn5G7SOyu kIgAIge9ioCvNv97iSV0N+xp9FdCZP4= 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 v2 3/4] x86/boot/compressed: Mark process_mem_region() index __maybe_unused Date: Wed, 24 Jun 2026 14:02:57 +0200 Message-ID: <20260624120300.590233-9-thorsten.blum@linux.dev> In-Reply-To: <20260624120300.590233-6-thorsten.blum@linux.dev> References: <20260624120300.590233-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=gC8Diiw8kQ0CRjnkDCPrq7waUXsQAOKvFhFfdR0hYoY=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFnWx+u0bHW/1rD+41vUeHp2v8mb1j+/fs3UXhHyr/XYg 7NOBRdMO0pZGMS4GGTFFFkezPoxw7e0pnKTScROmDmsTCBDGLg4BWAiOscZ/tmH/Nlgd2/B195k /t+9ratDjj27ktPdzMryTvLeTlXHnm2MDH8qTz1wUQ9eoHXnhUT2SbXAzNwJ947/N91SH73k8/z JzrwA 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 8e4bf5365ac6..affbb5c84b15 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -597,7 +597,8 @@ static bool process_mem_region(struct mem_vector *region, unsigned long minimum, unsigned long image_size) { - int i; + int i __maybe_unused; + /* * If no immovable memory found, or MEMORY_HOTREMOVE disabled, * use @region directly.