summaryrefslogtreecommitdiffstats
path: root/mm/page_table_check.c
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-07-14 01:26:32 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-18 10:12:28 -0700
commit1831414cd729a34af937d56ad684a66599de6344 (patch)
tree36a1672968d1dfe38ee1aea7c78c60fa4ece6ad8 /mm/page_table_check.c
parentaa232204c4689427cefa55fe975692b57291523a (diff)
downloadlinux-stable-1831414cd729a34af937d56ad684a66599de6344.tar.gz
linux-stable-1831414cd729a34af937d56ad684a66599de6344.tar.bz2
linux-stable-1831414cd729a34af937d56ad684a66599de6344.zip
mm/page_table_check: remove unused parameter in [__]page_table_check_pmd_clear
Remove unused addr in page_table_check_pmd_clear and __page_table_check_pmd_clear. Link: https://lkml.kernel.org/r/20230713172636.1705415-5-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>
Diffstat (limited to 'mm/page_table_check.c')
-rw-r--r--mm/page_table_check.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_table_check.c b/mm/page_table_check.c
index a1015fc4d045..51f2274c0a20 100644
--- a/mm/page_table_check.c
+++ b/mm/page_table_check.c
@@ -160,8 +160,7 @@ void __page_table_check_pte_clear(struct mm_struct *mm, pte_t pte)
}
EXPORT_SYMBOL(__page_table_check_pte_clear);
-void __page_table_check_pmd_clear(struct mm_struct *mm, unsigned long addr,
- pmd_t pmd)
+void __page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd)
{
if (&init_mm == mm)
return;
@@ -204,7 +203,7 @@ void __page_table_check_pmd_set(struct mm_struct *mm, unsigned long addr,
if (&init_mm == mm)
return;
- __page_table_check_pmd_clear(mm, addr, *pmdp);
+ __page_table_check_pmd_clear(mm, *pmdp);
if (pmd_user_accessible_page(pmd)) {
page_table_check_set(pmd_pfn(pmd), PMD_SIZE >> PAGE_SHIFT,
pmd_write(pmd));