.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
12 | 4 | */ |
---|
13 | 5 | #include <linux/mm.h> |
---|
14 | 6 | #include <linux/module.h> |
---|
15 | 7 | |
---|
16 | | -#include <asm/pgtable.h> |
---|
17 | 8 | #include <asm/tlbflush.h> |
---|
18 | 9 | #include <asm/set_memory.h> |
---|
19 | 10 | |
---|
.. | .. |
---|
22 | 13 | pgprot_t clear_mask; |
---|
23 | 14 | }; |
---|
24 | 15 | |
---|
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) |
---|
27 | 17 | { |
---|
28 | 18 | struct page_change_data *cdata = data; |
---|
29 | 19 | pte_t pte = *ptep; |
---|