diff options
| author | David Hildenbrand <[email protected]> | 2024-03-27 15:33:01 +0100 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-25 20:56:24 -0700 |
| commit | 82a616d0f33b77b1cadd0652efbe11874771320f (patch) | |
| tree | 62063e8db56e648cd3042c217418a65e9245e488 /include/linux | |
| parent | 3b612c8f069fecb84af277c8b90e14832749ceca (diff) | |
mm: remove "prot" parameter from move_pte()
The "prot" parameter is unused, and using it instead of what's stored in
that particular PTE would very likely be wrong. Let's simply remove it.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Hildenbrand <[email protected]>
Reviewed-by: Vishal Moola (Oracle) <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Andreas Larsson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index f108c7a3c1d9..a3fc8150b047 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -1079,7 +1079,7 @@ static inline void arch_swap_restore(swp_entry_t entry, struct folio *folio) #endif #ifndef __HAVE_ARCH_MOVE_PTE -#define move_pte(pte, prot, old_addr, new_addr) (pte) +#define move_pte(pte, old_addr, new_addr) (pte) #endif #ifndef pte_accessible |