--- zzzz-none-000/linux-2.6.28.10/include/asm-generic/pgtable.h 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/include/asm-generic/pgtable.h 2010-03-09 12:51:36.000000000 +0000 @@ -92,7 +92,7 @@ #ifndef __HAVE_ARCH_PTEP_SET_WRPROTECT struct mm_struct; -static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep) +static inline void ptep_set_wrprotect(struct mm_struct *mm __attribute__ ((unused)), unsigned long address __attribute__((unused)), pte_t *ptep) { pte_t old_pte = *ptep; set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); @@ -196,8 +196,8 @@ return 0; } -static inline pte_t __ptep_modify_prot_start(struct mm_struct *mm, - unsigned long addr, +static inline pte_t __ptep_modify_prot_start(struct mm_struct *mm __attribute__ ((unused)), + unsigned long addr __attribute__ ((unused)), pte_t *ptep) { /* @@ -208,8 +208,8 @@ return ptep_get_and_clear(mm, addr, ptep); } -static inline void __ptep_modify_prot_commit(struct mm_struct *mm, - unsigned long addr, +static inline void __ptep_modify_prot_commit(struct mm_struct *mm __attribute__ ((unused)), + unsigned long addr __attribute__((unused)), pte_t *ptep, pte_t pte) { /*