linux: add broken flag to targets which are using 2.6.30
[librecmc/librecmc.git] / target / linux / generic / patches-2.6.30 / 034-ppc_unused_variables.patch
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,
5                                       pte_t *ptep)
6  {
7 -       unsigned long old;
8 +       unsigned long old __maybe_unused;
9  
10                 if ((pte_val(*ptep) & _PAGE_RW) == 0)
11                         return;
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)
15  {
16 -       unsigned long old;
17 +       unsigned long old __maybe_unused;
18  
19         if ((pte_val(*ptep) & _PAGE_RW) == 0)
20                 return;