Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254AbcKHBmF convert rfc822-to-8bit (ORCPT ); Mon, 7 Nov 2016 20:42:05 -0500 Received: from TYO202.gate.nec.co.jp ([210.143.35.52]:49941 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbcKHBmB (ORCPT ); Mon, 7 Nov 2016 20:42:01 -0500 X-Greylist: delayed 1119 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 Nov 2016 20:42:01 EST From: Naoya Horiguchi To: kbuild test robot CC: "kbuild-all@01.org" , "linux-mm@kvack.org" , "Kirill A. Shutemov" , Hugh Dickins , Andrew Morton , Dave Hansen , Andrea Arcangeli , Mel Gorman , Michal Hocko , Vlastimil Babka , Pavel Emelyanov , "Zi Yan" , Balbir Singh , "linux-kernel@vger.kernel.org" , "Naoya Horiguchi" Subject: [PATCH] mm: fix unused variable warning Thread-Topic: [PATCH] mm: fix unused variable warning Thread-Index: AQHSOWEt2wtidtj4rU6CDwvkPQNzmA== Date: Tue, 8 Nov 2016 01:41:08 +0000 Message-ID: <20161108014107.GA21079@hori1.linux.bs1.fc.nec.co.jp> References: <1478561517-4317-13-git-send-email-n-horiguchi@ah.jp.nec.com> <201611080850.MhSq3cNm%fengguang.wu@intel.com> <20161108013602.GA20317@hori1.linux.bs1.fc.nec.co.jp> In-Reply-To: <20161108013602.GA20317@hori1.linux.bs1.fc.nec.co.jp> Accept-Language: en-US, ja-JP Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.128.101.4] Content-Type: text/plain; charset="iso-2022-jp" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 832 Lines: 27 Fix the following warning: mm/memory_hotplug.c: In function 'try_offline_node': mm/memory_hotplug.c:2131:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ Reported-by: kbuild test robot Signed-off-by: Naoya Horiguchi --- mm/memory_hotplug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 534348ddd285..d612a75ceec4 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -2128,7 +2128,6 @@ void try_offline_node(int nid) unsigned long start_pfn = pgdat->node_start_pfn; unsigned long end_pfn = start_pfn + pgdat->node_spanned_pages; unsigned long pfn; - int i; for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { unsigned long section_nr = pfn_to_section_nr(pfn); -- 2.7.4