Commit 158544b1 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

arch/powerpc/platforms/pseries/hotplug-memory.c: fix section handling code


  arch/powerpc/platforms/pseries/hotplug-memory.c: In function 'pseries_remove_memblock':
  arch/powerpc/platforms/pseries/hotplug-memory.c:103:17: error: unused variable 'pfn' [-Werror=unused-variable]

Caused by commit d760afd4

 ("memory-hotplug: suppress "Trying to free
nonexistent resource <XXXXXXXXXXXXXXXX-YYYYYYYYYYYYYYYY>" warning").
Reported-by: default avatarStephen Rothwell <>
Cc: Yasuaki Ishimatsu <>
Tested-by: default avatarStephen Rothwell <>
Signed-off-by: default avatarAndrew Morton <>
Tested-by: default avatarNathan Fontenot <>
Tested-by: default avatarBenjamin Herrenschmidt <>
Signed-off-by: default avatarLinus Torvalds <>
parent 9e695d2e
......@@ -101,7 +101,7 @@ static int pseries_remove_memblock(unsigned long base, unsigned int memblock_siz
sections_to_remove = (memblock_size >> PAGE_SHIFT) / PAGES_PER_SECTION;
for (i = 0; i < sections_to_remove; i++) {
unsigned long pfn = start_pfn + i * PAGES_PER_SECTION;
ret = __remove_pages(zone, start_pfn, PAGES_PER_SECTION);
ret = __remove_pages(zone, pfn, PAGES_PER_SECTION);
if (ret)
return ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment