forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/arm/mm/pageattr.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 and
6
- * only version 2 as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135 #include <linux/mm.h>
146 #include <linux/module.h>
157
16
-#include <asm/pgtable.h>
178 #include <asm/tlbflush.h>
189 #include <asm/set_memory.h>
1910
....@@ -22,8 +13,7 @@
2213 pgprot_t clear_mask;
2314 };
2415
25
-static int change_page_range(pte_t *ptep, pgtable_t token, unsigned long addr,
26
- void *data)
16
+static int change_page_range(pte_t *ptep, unsigned long addr, void *data)
2717 {
2818 struct page_change_data *cdata = data;
2919 pte_t pte = *ptep;