Skip to content

Commit c38ca26

Browse files
Qian Caimpe
authored andcommitted
powerpc/mm: fix "section_base" set but not used
The commit 24b6d41 ("mm: pass the vmem_altmap to vmemmap_free") removed a line in vmemmap_free(), altmap = to_vmem_altmap((unsigned long) section_base); but left a variable no longer used. arch/powerpc/mm/init_64.c: In function 'vmemmap_free': arch/powerpc/mm/init_64.c:277:16: error: variable 'section_base' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Qian Cai <cai@lca.pw> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 8132cf1 commit c38ca26

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/powerpc/mm/init_64.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ void __ref vmemmap_free(unsigned long start, unsigned long end,
274274

275275
for (; start < end; start += page_size) {
276276
unsigned long nr_pages, addr;
277-
struct page *section_base;
278277
struct page *page;
279278

280279
/*
@@ -290,7 +289,6 @@ void __ref vmemmap_free(unsigned long start, unsigned long end,
290289
continue;
291290

292291
page = pfn_to_page(addr >> PAGE_SHIFT);
293-
section_base = pfn_to_page(vmemmap_section_start(start));
294292
nr_pages = 1 << page_order;
295293
base_pfn = PHYS_PFN(addr);
296294

0 commit comments

Comments
 (0)