Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1516720
| From | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] mm: fix unused variable warning |
| Date | 2016-11-08 02:50 +0100 |
| Message-ID | <sB3HX-2KB-7@gated-at.bofh.it> (permalink) |
| References | <sB1Ga-1xZ-31@gated-at.bofh.it> <sB2Cd-29A-5@gated-at.bofh.it> <sB3HX-2KB-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <lkp@intel.com>
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
---
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 12/12] mm: memory_hotplug: memory hotremove supports thp migration Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-11-08 00:40 +0100 Re: [PATCH v2 12/12] mm: memory_hotplug: memory hotremove supports thp migration kbuild test robot <lkp@intel.com> - 2016-11-08 01:40 +0100 [PATCH] mm: fix unused variable warning Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-11-08 02:50 +0100 Re: [PATCH v2 12/12] mm: memory_hotplug: memory hotremove supports thp migration Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-11-08 02:50 +0100
csiph-web