Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/page_table_check: remove unused parameter in [__]page_table_check_pud_set

Remove unused addr in __page_table_check_pud_set and
page_table_check_pud_set.

Link: https://lkml.kernel.org/r/20230713172636.1705415-9-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Kemeng Shi and committed by
Andrew Morton
6d144436 a3b83713

+8 -12
+1 -1
arch/arm64/include/asm/pgtable.h
··· 531 531 static inline void set_pud_at(struct mm_struct *mm, unsigned long addr, 532 532 pud_t *pudp, pud_t pud) 533 533 { 534 - page_table_check_pud_set(mm, addr, pudp, pud); 534 + page_table_check_pud_set(mm, pudp, pud); 535 535 return __set_pte_at(mm, addr, (pte_t *)pudp, pud_pte(pud)); 536 536 } 537 537
+1 -1
arch/riscv/include/asm/pgtable.h
··· 694 694 static inline void set_pud_at(struct mm_struct *mm, unsigned long addr, 695 695 pud_t *pudp, pud_t pud) 696 696 { 697 - page_table_check_pud_set(mm, addr, pudp, pud); 697 + page_table_check_pud_set(mm, pudp, pud); 698 698 return __set_pte_at(mm, addr, (pte_t *)pudp, pud_pte(pud)); 699 699 } 700 700
+1 -1
arch/x86/include/asm/pgtable.h
··· 1037 1037 static inline void set_pud_at(struct mm_struct *mm, unsigned long addr, 1038 1038 pud_t *pudp, pud_t pud) 1039 1039 { 1040 - page_table_check_pud_set(mm, addr, pudp, pud); 1040 + page_table_check_pud_set(mm, pudp, pud); 1041 1041 native_set_pud(pudp, pud); 1042 1042 } 1043 1043
+4 -7
include/linux/page_table_check.h
··· 19 19 void __page_table_check_pud_clear(struct mm_struct *mm, pud_t pud); 20 20 void __page_table_check_pte_set(struct mm_struct *mm, pte_t *ptep, pte_t pte); 21 21 void __page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, pmd_t pmd); 22 - void __page_table_check_pud_set(struct mm_struct *mm, unsigned long addr, 23 - pud_t *pudp, pud_t pud); 22 + void __page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, pud_t pud); 24 23 void __page_table_check_pte_clear_range(struct mm_struct *mm, 25 24 unsigned long addr, 26 25 pmd_t pmd); ··· 82 83 __page_table_check_pmd_set(mm, pmdp, pmd); 83 84 } 84 85 85 - static inline void page_table_check_pud_set(struct mm_struct *mm, 86 - unsigned long addr, pud_t *pudp, 86 + static inline void page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, 87 87 pud_t pud) 88 88 { 89 89 if (static_branch_likely(&page_table_check_disabled)) 90 90 return; 91 91 92 - __page_table_check_pud_set(mm, addr, pudp, pud); 92 + __page_table_check_pud_set(mm, pudp, pud); 93 93 } 94 94 95 95 static inline void page_table_check_pte_clear_range(struct mm_struct *mm, ··· 133 135 { 134 136 } 135 137 136 - static inline void page_table_check_pud_set(struct mm_struct *mm, 137 - unsigned long addr, pud_t *pudp, 138 + static inline void page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, 138 139 pud_t pud) 139 140 { 140 141 }
+1 -2
mm/page_table_check.c
··· 208 208 } 209 209 EXPORT_SYMBOL(__page_table_check_pmd_set); 210 210 211 - void __page_table_check_pud_set(struct mm_struct *mm, unsigned long addr, 212 - pud_t *pudp, pud_t pud) 211 + void __page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, pud_t pud) 213 212 { 214 213 if (&init_mm == mm) 215 214 return;