mm: remove "prot" parameter from move_pte()
authorDavid Hildenbrand <david@redhat.com>
Wed, 27 Mar 2024 14:33:01 +0000 (15:33 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:24 +0000 (20:56 -0700)
commit82a616d0f33b77b1cadd0652efbe11874771320f
tree62063e8db56e648cd3042c217418a65e9245e488
parent3b612c8f069fecb84af277c8b90e14832749ceca
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/20240327143301.741807-1-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/sparc/include/asm/pgtable_64.h
include/linux/pgtable.h
mm/mremap.c