From patchwork Mon Dec 10 20:53:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 153350 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4000715ljp; Mon, 10 Dec 2018 12:54:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XfeusBnrpSvc/5Boyyx7z9UjHBVoLLXZQN+lRxpg+jLTjfcKul1Wae+5+oCxQsJPR/QN4t X-Received: by 2002:a63:7306:: with SMTP id o6mr11941272pgc.343.1544475262020; Mon, 10 Dec 2018 12:54:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544475262; cv=none; d=google.com; s=arc-20160816; b=AITjHG3dnJpHsdYZwLvX+WjmVW6p+hvCnFC9EG7gnal6xLKHVNvGNP3MmKUeWtv20a +T4vFk/O6U/geV78ryR9qS4P9OKClhCTPa0L9KNXpaYgUIossZcet2JedbhUwOeVJ+VT W6EIhu5rkrt31QsrTIeKQMfJxpFp3nlKCYvsPo5hJLBDCtsm4DMEysadf5qjxN2b2RfK QZy10bdD1XcvbaiQnlhk5WNh4Cv3NgMd5ZMSY/bdtLxiKUvcpAd+w10w7LzFHllyme5o O/qHFRtelyy2BZ2AHlwukUPJWaQNIeiSkZGpAkJUdVYDKKuEx9uaQeySYGSsLsUwYh5z rlwg== 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 :message-id:date:subject:cc:to:from; bh=lXy0VyXMWoUkTFEIHdHn5YdqYsP8RIsunyjruc/w0zU=; b=sEdOez2EaNDgBd13GEy/74Yrtp77gjnGOp46c+1RqWjpDlRokd9aO6Uo7Nxw14YnNy gT+zCI1XdSSn3Czu2PZCtcN34D66OvA4UzUu9ri5WJcYvVLrHhoEjt5GPyx9kHBnw0zH WI384GM8cIcuFX0NEJC682wcwQP2ICqWbHT1rdlx5LvoHIZ2zJR5O44ureen0mEUyPNw V+qeLdFpzSGp9ycw2F/owIwOEBiouOfnwniHIgS7ZF22y2RGfZxfhKgk5WLolqYEG45u YBIm2JeqGfhoImU4txBZv+/YXVXE7POqdC3CX0Nbl3pC5y77xoFhdFXxgNdAWhghFFST NGlA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si10536066pgc.232.2018.12.10.12.54.21; Mon, 10 Dec 2018 12:54:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729804AbeLJUyU (ORCPT + 31 others); Mon, 10 Dec 2018 15:54:20 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:58651 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbeLJUyU (ORCPT ); Mon, 10 Dec 2018 15:54:20 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPA (Nemesis) id 1MtOSu-1hJDBU36WE-00uq8N; Mon, 10 Dec 2018 21:53:14 +0100 From: Arnd Bergmann To: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org Cc: Oscar Salvador , Arnd Bergmann , "H. Peter Anvin" , Andrew Morton , Stephen Rothwell , Mike Rapoport , Stefan Agner , linux-kernel@vger.kernel.org Subject: [PATCH] x86: mm: remove unused variable Date: Mon, 10 Dec 2018 21:53:02 +0100 Message-Id: <20181210205309.2794444-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:yCH03GP4qhHadJnzsehxhfFpcyMSm8NyfRszg1Xwscl4maIXqMZ bP+8lbM8NYB2UwXPxazPsohiReP4Ab21cK2+xph73iJRpcfMfXGHYb8lU4jmXj48lYX6VY4 XSRLGC0D3H1MDlEAjFU75dotK3288oB3YNaF3ltFiTe1ur4dBmad7QEUNqzNa/ZaVeXklG4 LMCBAgFzmQHtKHFADoqUQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:LI/pbccW/cs=:SFoAhw4/LlAAeg4yLDGDTh qP2zKgGBkCDLF5+YlD2M2MegTAdB6/G1KEtvvPoBwlv4EH1/DW8VTk2NTaA/JullJXAlY6O46 Whakxpn48COmZNODZPJL77m1jCXLrhdycDrE96aDuRZkURdI+UFvVoXHZt4Y7uZp6yKmwrxd0 NN9oKTO5NWYtAnCbGdwDpg6EWcsNqzBmLwL64gGjCwXzRIPaeQGgY7TFn/seM2RWaCxYCqAwo 9v/N5+Ic19ZtsW3IAUAppLs4q9Lc5JlQ+4FC5d34KRlBzQMFqG9yyh/aycnjnzyDnTG1x+ssU +pb5h+D4ZmyRYFBGuWwFdo753AqUkjQeReVV4jbheMAoeA6ahbJhPCOBw+oxjJlcUiRvMP9xf R13WBxwAjeGkmDHGWvTmZcUjavtsAGHIiyoZtQntwXiRh7z7azWyMnYm+Nw3yxK6jvdFMePDR OADLrRauKdwmrdecdqTmLUSSI8RcXA/csTp4KGflT+008u9nFb5m6XYb5BYP5gP0iUb3ZWDaC 9XBBSa21iD9iL0rnYOg19IIz14tuQw3WmILQURzzus2dBQoZWLUCtDzAEORYd5NqAd8KmtTR3 W/oUFLi4PJ9fO7/Fv7jNnQ6rBdlMKBXj7f3/JpWIXO4UN+Qg8Mtrq/v/+x8W0tPBhVm0EcQ8S RHyPt7UDc/QhOVRKRXb0/zI5FcBMvtU6hgA0/Ue8NmVO1PKE4T8Mpjaumob/3SSZxHec5+il8 SA0yyCT29GWhE9M7BZZUUWk1X+8Q7qAJjFizIQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A recent change dropped the only user of the variable, which should now be removed as well to avoid this warning: arch/x86/mm/init_32.c: In function 'arch_remove_memory': arch/x86/mm/init_32.c:867:15: error: unused variable 'zone' [-Werror=unused-variable] Fixes: dd99d07f818b ("mm, memory_hotplug: move zone/pages handling to offline stage") Signed-off-by: Arnd Bergmann --- arch/x86/mm/init_32.c | 1 - 1 file changed, 1 deletion(-) -- 2.20.0 Acked-by: Thomas Gleixner diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 0b8c7b0033d2..c75c26497c4f 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c @@ -864,7 +864,6 @@ int arch_remove_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap) { unsigned long start_pfn = start >> PAGE_SHIFT; unsigned long nr_pages = size >> PAGE_SHIFT; - struct zone *zone; return remove_sections(nid, start_pfn, nr_pages, altmap); }