@@ -341,8 +341,9 @@ static inline void __sync_cache_and_tags(pte_t pte, unsigned int nr_pages)
341
341
mte_sync_tags (pte , nr_pages );
342
342
}
343
343
344
- static inline void set_ptes (struct mm_struct * mm , unsigned long addr ,
345
- pte_t * ptep , pte_t pte , unsigned int nr )
344
+ static inline void set_ptes (struct mm_struct * mm ,
345
+ unsigned long __always_unused addr ,
346
+ pte_t * ptep , pte_t pte , unsigned int nr )
346
347
{
347
348
page_table_check_ptes_set (mm , ptep , pte , nr );
348
349
__sync_cache_and_tags (pte , nr );
@@ -353,7 +354,6 @@ static inline void set_ptes(struct mm_struct *mm, unsigned long addr,
353
354
if (-- nr == 0 )
354
355
break ;
355
356
ptep ++ ;
356
- addr += PAGE_SIZE ;
357
357
pte_val (pte ) += PAGE_SIZE ;
358
358
}
359
359
}
@@ -528,7 +528,8 @@ static inline pmd_t pmd_mkdevmap(pmd_t pmd)
528
528
#define pud_pfn (pud ) ((__pud_to_phys(pud) & PUD_MASK) >> PAGE_SHIFT)
529
529
#define pfn_pud (pfn ,prot ) __pud(__phys_to_pud_val((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot))
530
530
531
- static inline void __set_pte_at (struct mm_struct * mm , unsigned long addr ,
531
+ static inline void __set_pte_at (struct mm_struct * mm ,
532
+ unsigned long __always_unused addr ,
532
533
pte_t * ptep , pte_t pte , unsigned int nr )
533
534
{
534
535
__sync_cache_and_tags (pte , nr );
0 commit comments