--- zzzz-none-000/linux-2.6.39.4/arch/x86/include/asm/pgtable.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/x86/include/asm/pgtable.h 2021-11-10 13:23:10.000000000 +0000 @@ -616,13 +616,13 @@ return res; } -static inline void native_set_pte_at(struct mm_struct *mm, unsigned long addr, +static inline void native_set_pte_at(struct mm_struct *mm __attribute__((unused)), unsigned long addr __attribute__((unused)), pte_t *ptep , pte_t pte) { native_set_pte(ptep, pte); } -static inline void native_set_pmd_at(struct mm_struct *mm, unsigned long addr, +static inline void native_set_pmd_at(struct mm_struct *mm __attribute__((unused)), unsigned long addr __attribute__((unused)), pmd_t *pmdp , pmd_t pmd) { native_set_pmd(pmdp, pmd); @@ -669,7 +669,7 @@ unsigned long address, pte_t *ptep); #define __HAVE_ARCH_PTEP_GET_AND_CLEAR -static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, +static inline pte_t ptep_get_and_clear(struct mm_struct *mm __attribute__((unused)), unsigned long addr __attribute__((unused)), pte_t *ptep) { pte_t pte = native_ptep_get_and_clear(ptep); @@ -696,8 +696,8 @@ } #define __HAVE_ARCH_PTEP_SET_WRPROTECT -static inline void ptep_set_wrprotect(struct mm_struct *mm, - unsigned long addr, pte_t *ptep) +static inline void ptep_set_wrprotect(struct mm_struct *mm __attribute__((unused)), + unsigned long addr __attribute__((unused)), pte_t *ptep) { clear_bit(_PAGE_BIT_RW, (unsigned long *)&ptep->pte); pte_update(mm, addr, ptep); @@ -732,7 +732,7 @@ } #define __HAVE_ARCH_PMDP_GET_AND_CLEAR -static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, unsigned long addr, +static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm __attribute__((unused)), unsigned long addr __attribute__((unused)), pmd_t *pmdp) { pmd_t pmd = native_pmdp_get_and_clear(pmdp); @@ -741,8 +741,8 @@ } #define __HAVE_ARCH_PMDP_SET_WRPROTECT -static inline void pmdp_set_wrprotect(struct mm_struct *mm, - unsigned long addr, pmd_t *pmdp) +static inline void pmdp_set_wrprotect(struct mm_struct *mm __attribute__((unused)), + unsigned long addr __attribute__((unused)), pmd_t *pmdp) { clear_bit(_PAGE_BIT_RW, (unsigned long *)pmdp); pmd_update(mm, addr, pmdp);