--- zzzz-none-000/linux-2.6.39.4/include/asm-generic/pgtable.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/asm-generic/pgtable.h 2021-11-10 13:23:10.000000000 +0000 @@ -48,9 +48,9 @@ return r; } #else /* CONFIG_TRANSPARENT_HUGEPAGE */ -static inline int pmdp_test_and_clear_young(struct vm_area_struct *vma, - unsigned long address, - pmd_t *pmdp) +static inline int pmdp_test_and_clear_young(struct vm_area_struct *vma __attribute__((unused)), + unsigned long address __attribute__((unused)), + pmd_t *pmdp __attribute__((unused))) { BUG(); return 0; @@ -69,8 +69,8 @@ #endif #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR -static inline pte_t ptep_get_and_clear(struct mm_struct *mm, - unsigned long address, +static inline pte_t ptep_get_and_clear(struct mm_struct *mm __attribute__((unused)), + unsigned long address __attribute__((unused)), pte_t *ptep) { pte_t pte = *ptep; @@ -95,7 +95,7 @@ #ifndef __HAVE_ARCH_PTEP_GET_AND_CLEAR_FULL static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long address, pte_t *ptep, - int full) + int full __attribute__((unused))) { pte_t pte; pte = ptep_get_and_clear(mm, address, ptep); @@ -109,10 +109,10 @@ * not present, or in the process of an address space destruction. */ #ifndef __HAVE_ARCH_PTE_CLEAR_NOT_PRESENT_FULL -static inline void pte_clear_not_present_full(struct mm_struct *mm, - unsigned long address, +static inline void pte_clear_not_present_full(struct mm_struct *mm __attribute__((unused)), + unsigned long address __attribute__((unused)), pte_t *ptep, - int full) + int full __attribute__((unused))) { pte_clear(mm, address, ptep); } @@ -148,8 +148,8 @@ set_pmd_at(mm, address, pmdp, pmd_wrprotect(old_pmd)); } #else /* CONFIG_TRANSPARENT_HUGEPAGE */ -static inline void pmdp_set_wrprotect(struct mm_struct *mm, - unsigned long address, pmd_t *pmdp) +static inline void pmdp_set_wrprotect(struct mm_struct *mm __attribute__((unused)), + unsigned long address __attribute__((unused)), pmd_t *pmdp __attribute__((unused))) { BUG(); } @@ -176,7 +176,7 @@ return pmd_val(pmd_a) == pmd_val(pmd_b); } #else /* CONFIG_TRANSPARENT_HUGEPAGE */ -static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) +static inline int pmd_same(pmd_t pmd_a __attribute__((unused)), pmd_t pmd_b __attribute__((unused))) { BUG(); return 0; @@ -391,8 +391,8 @@ * track_pfn_vma_new is called when a _new_ pfn mapping is being established * for physical range indicated by pfn and size. */ -static inline int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t *prot, - unsigned long pfn, unsigned long size) +static inline int track_pfn_vma_new(struct vm_area_struct *vma __attribute__((unused)), pgprot_t *prot __attribute__((unused)), + unsigned long pfn __attribute__((unused)), unsigned long size __attribute__((unused))) { return 0; } @@ -404,7 +404,7 @@ * track_pfn_vma_copy is called when vma that is covering the pfnmap gets * copied through copy_page_range(). */ -static inline int track_pfn_vma_copy(struct vm_area_struct *vma) +static inline int track_pfn_vma_copy(struct vm_area_struct *vma __attribute__((unused))) { return 0; } @@ -417,8 +417,8 @@ * untrack can be called for a specific region indicated by pfn and size or * can be for the entire vma (in which case size can be zero). */ -static inline void untrack_pfn_vma(struct vm_area_struct *vma, - unsigned long pfn, unsigned long size) +static inline void untrack_pfn_vma(struct vm_area_struct *vma __attribute__((unused)), + unsigned long pfn __attribute__((unused)), unsigned long size __attribute__((unused))) { } #else @@ -430,16 +430,16 @@ #endif #ifndef CONFIG_TRANSPARENT_HUGEPAGE -static inline int pmd_trans_huge(pmd_t pmd) +static inline int pmd_trans_huge(pmd_t pmd __attribute__((unused))) { return 0; } -static inline int pmd_trans_splitting(pmd_t pmd) +static inline int pmd_trans_splitting(pmd_t pmd __attribute__((unused))) { return 0; } #ifndef __HAVE_ARCH_PMD_WRITE -static inline int pmd_write(pmd_t pmd) +static inline int pmd_write(pmd_t pmd __attribute__((unused))) { BUG(); return 0;