1 --- a/arch/powerpc/include/asm/pgtable-ppc64.h
2 +++ b/arch/powerpc/include/asm/pgtable-ppc64.h
3 @@ -226,7 +226,7 @@ static inline int __ptep_test_and_clear_
4 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
8 + unsigned long old __maybe_unused;
10 if ((pte_val(*ptep) & _PAGE_RW) == 0)
12 @@ -236,7 +236,7 @@ static inline void ptep_set_wrprotect(st
13 static inline void huge_ptep_set_wrprotect(struct mm_struct *mm,
14 unsigned long addr, pte_t *ptep)
17 + unsigned long old __maybe_unused;
19 if ((pte_val(*ptep) & _PAGE_RW) == 0)