From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (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 2A0F2367B99 for ; Sun, 21 Jun 2026 14:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782052937; cv=none; b=A4KJyVUYx26KECcmOmYuQ11p3UW6lMiHd+wmzQw362aTnNgasDg+xVlJXWVa3X+ge9hybBwgPbxVNQR9GoeYbO4XS1RmrOeSIgM5XDMIg/GK0Ix12z7Kkq+w7WFt5NaWdoxk3ZrFFpcY6+dZlvBR9RhEjIYGSjM84OwCye0Bty4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782052937; c=relaxed/simple; bh=b8ccal5CrD8vFcyuvtB5p3Wat7bj2g5r9IJTidXDxBQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eHxyEHrxl4EoDEzDd2HMq2+iONxWQAQCheadX3NEjmia+80CDhcJMJ0tlVn/pR65tZXuyMiMbYpwnpIMKKv5gKg+t1Ig/4fZOInT82NKj4VFlpsGCPoHf9Ro/fYk4OLaNfnN5lZUja5yxcB3/Dii9skGt2U3i3u0Ph0yBCW5zAQ= 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=n2U+igKF; arc=none smtp.client-ip=91.218.175.172 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="n2U+igKF" 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=1782052933; 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; bh=nK5ex96+IErzvpG1hX6/EDgcud2+iAOkFLijn0AP6RI=; b=n2U+igKFz7LPOtfjlRwW6i7t/Eo5zX+0xREG4I+rC1ONVgG4J0FM9zBhyqPHF/aNGK5/X6 e6Gq5H6r46dOa43UnwV1M8U4+68QgWF0xym5lBn1ToHwq4vQy4g89Jb0VV/ZgQIb10a7Hm uN/0sWCw9URKegbSpWiCO0SGMWZDsWE= 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 0/4] x86/boot/compressed: Enable -Wunused and remove unused variables Date: Sun, 21 Jun 2026 16:41:17 +0200 Message-ID: <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=1137; i=thorsten.blum@linux.dev; h=from:subject; bh=b8ccal5CrD8vFcyuvtB5p3Wat7bj2g5r9IJTidXDxBQ=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFnmP3g2dT+SuO2t/vpp3oOqNS8D0gKfmxxsX/DCI+k6O 3/v6/MXO0pZGMS4GGTFFFkezPoxw7e0pnKTScROmDmsTCBDGLg4BWAil88x/M/+8qkyr23Xm0sO K7nPHw54z6nj1XP1e2eq8cn7F/pKvl9kZLjBvt5w65cJjnaCb/e/W/FFj6v1p9SikMeSYa9PLEs 6kMoOAA== X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This series removes unused variables and enables -Wunused, matching the W=0 kernel defaults. With WERROR=y, the warnings failed as follows: arch/x86/boot/compressed/acpi.c:29:6: error: unused variable 'ret' arch/x86/boot/compressed/acpi.c:57:15: error: unused variable 'nr_tables' arch/x86/boot/compressed/efi.c:64:16: error: unused variable 'et' arch/x86/boot/compressed/efi.c:136:6: error: unused variable 'ret' Patch 2 also drops a redundant efi_get_system_table() call and uses the existing efi_get_conf_table() error path. Thorsten Blum (4): x86/boot/compressed: Remove unused variables in EFI helpers x86/boot/compressed: Clean up EFI RSDP lookup in efi_get_rsdp_addr() x86/boot/compressed: Mark process_mem_region() index __maybe_unused x86/boot/compressed: Enable -Wunused arch/x86/boot/compressed/Makefile | 3 +++ arch/x86/boot/compressed/acpi.c | 16 +++------------- arch/x86/boot/compressed/efi.c | 17 +++++------------ arch/x86/boot/compressed/kaslr.c | 3 ++- 4 files changed, 13 insertions(+), 26 deletions(-) base-commit: 1a3746ccbb0a97bed3c06ccde6b880013b1dddc1