Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4194948ybl; Mon, 13 Jan 2020 09:25:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxfADav0I0WQ4lhP6UTGTHdjOTJok5inx7O3vR1QGAyljGaNvSg/1BL1RM57njIpUc2Gy7E X-Received: by 2002:aca:4b46:: with SMTP id y67mr13779355oia.121.1578936307042; Mon, 13 Jan 2020 09:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578936307; cv=none; d=google.com; s=arc-20160816; b=kRPVrIu7QGKbDIce+EGWL1y7I7LzbKRQdwGddXceD+qo7Puut5PUT0foIaSCfmK5i2 5MAjpvzwSbj7NMeDGtLrfZ6Ps4XccFeDGfOL6yKpBWsmkIBlQ6MZYqUz8VkFJR/qe++j e73vYooR9dw18onVaYmiLrek5mfpLrfCFIzDX0LO8VTvKQtAgJ6D+Zp+Y1swGd+1fW7Z tt6iQhHv6cuXppm52m0U7eFxb+/fFzTWmRJTMTl7FyiuhvwkDXOejB2iVJlc+pfcn71i IDz16t7cCHmzzQVhAx6UANZVHgKE9hxnaw576gJLaHENufIBTu98s7OIYGSlUs0UL13c DbAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ks1XmW6RCuGk7VKIwl6oGzBDNNtanvq82P6HEkWDMMo=; b=t8C/yax44A+Y0ocl7hf17LL8gdpDHCeaSKu3dJn/iyxN4hRzbGibomf2Fra17JWpnB ugYkH0/yw0gAkvzjcl69Ary/hokg4m9Ja9GN3occlkywkjMabmFSupeFXI6ByqyBPL8R hC99PZdhAFyyj3uHuV2MOYWLjaoa7GA/ikjBFak7uooQjMxDukyOyqKtRQEI+PdXBkfy cnt1j6xRjLDEjY+pmtcJVYdJxTnjU+/sbj1IwqHLl9eF3hrJQPvlMfFxgwyRd3i+ZX/5 hBOxeCvQWCqR4R17ytWihaEWGveUoBAYTfS+WS/o00ZxNYAU0uflJNpBw4mgXm2YJV97 6AYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xOq5LAOW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si6918329otn.154.2020.01.13.09.24.55; Mon, 13 Jan 2020 09:25:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xOq5LAOW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728879AbgAMRXV (ORCPT + 99 others); Mon, 13 Jan 2020 12:23:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:41444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728833AbgAMRXN (ORCPT ); Mon, 13 Jan 2020 12:23:13 -0500 Received: from dogfood.home (amontpellier-657-1-18-247.w109-210.abo.wanadoo.fr [109.210.65.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 658BD21739; Mon, 13 Jan 2020 17:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578936193; bh=cg/rGZ6nIeh2leUh4xr8p6ii7cYV/TifdRIjaYF2Fp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xOq5LAOWRIl553Q0Gav37/vxEKieAlUyNkbOx99PyI0fxTK78htNEUC7HOlIxWAW2 18+UcwM6DGRz4ARZTzyiJ6kGqUHjdHuI+EKQv+HE7OrrWaJCIJyDVI9DadtEAFk33Y H01skN+HlgG5l6BhSLDqv2DnoOeVRmZdIwJFi7rs= From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Anshuman Khandual , Arnd Bergmann , Dan Williams , Dave Young , Saravana Kannan Subject: [PATCH 03/13] efi/libstub/x86: fix unused-variable warning Date: Mon, 13 Jan 2020 18:22:35 +0100 Message-Id: <20200113172245.27925-4-ardb@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200113172245.27925-1-ardb@kernel.org> References: <20200113172245.27925-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann The only users of these got removed, so they also need to be removed to avoid warnings: arch/x86/boot/compressed/eboot.c: In function 'setup_efi_pci': arch/x86/boot/compressed/eboot.c:117:16: error: unused variable 'nr_pci' [-Werror=unused-variable] unsigned long nr_pci; ^~~~~~ arch/x86/boot/compressed/eboot.c: In function 'setup_uga': arch/x86/boot/compressed/eboot.c:244:16: error: unused variable 'nr_ugas' [-Werror=unused-variable] unsigned long nr_ugas; ^~~~~~~ Fixes: 2732ea0d5c0a ("efi/libstub: Use a helper to iterate over a EFI handle array") Signed-off-by: Arnd Bergmann Signed-off-by: Ard Biesheuvel --- arch/x86/boot/compressed/eboot.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index ab3a40283db7..82e26d0ff075 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c @@ -118,7 +118,6 @@ static void setup_efi_pci(struct boot_params *params) void **pci_handle = NULL; efi_guid_t pci_proto = EFI_PCI_IO_PROTOCOL_GUID; unsigned long size = 0; - unsigned long nr_pci; struct setup_data *data; efi_handle_t h; int i; @@ -245,7 +244,6 @@ setup_uga(struct screen_info *si, efi_guid_t *uga_proto, unsigned long size) u32 width, height; void **uga_handle = NULL; efi_uga_draw_protocol_t *uga = NULL, *first_uga; - unsigned long nr_ugas; efi_handle_t handle; int i; -- 2.20.1