Skip to content

Commit 8132cf1

Browse files
Qian Caimpe
authored andcommitted
powerpc/mm: Fix "sz" set but not used warning
Fix compiler warning: arch/powerpc/mm/hugetlbpage-hash64.c: In function '__hash_page_huge': arch/powerpc/mm/hugetlbpage-hash64.c:29:28: warning: variable 'sz' set but not used [-Wunused-but-set-variable] mpe: The last usage of sz was removed in 0895ecd ("powerpc/mm: Bring hugepage PTE accessor functions back into sync with normal accessors"). Signed-off-by: Qian Cai <cai@lca.pw> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 790845e commit 8132cf1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/powerpc/mm/hugetlbpage-hash64.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
2626
real_pte_t rpte;
2727
unsigned long vpn;
2828
unsigned long old_pte, new_pte;
29-
unsigned long rflags, pa, sz;
29+
unsigned long rflags, pa;
3030
long slot, offset;
3131

3232
BUG_ON(shift != mmu_psize_defs[mmu_psize].shift);
@@ -73,7 +73,6 @@ int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
7373
offset = PTRS_PER_PMD;
7474
rpte = __real_pte(__pte(old_pte), ptep, offset);
7575

76-
sz = ((1UL) << shift);
7776
if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE))
7877
/* No CPU has hugepages but lacks no execute, so we
7978
* don't need to worry about that case */

0 commit comments

Comments
 (0)