]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: mm: define copy_user_page() as copy_page()
authorFlorian Schmaus <florian.schmaus@codasip.com>
Mon, 26 Jan 2026 04:09:52 +0000 (21:09 -0700)
committerPaul Walmsley <pjw@kernel.org>
Mon, 26 Jan 2026 04:09:52 +0000 (21:09 -0700)
commit9f77b4c5c38c5734c45fe6223d57e48715dbffb8
tree1967d5ace4a025673e81d662c3ad680934fa1f0d
parent28a12ef366ecb118db19b92120a07b0491c1958e
riscv: mm: define copy_user_page() as copy_page()

Currently, the implementation of copy_user_page() is identical to
copy_page().

Align riscv with other architectures (alpha, arc, arm64, hexagon,
longarch, m68k, openrisc, s390, um, xtensa) and map copy_user_page()
to copy_page() given that their implementation is identical.

In addition to following a common pattern, this centralizes the
implementation. Any changes to the underlying page copy logic (e.g.,
for CHERI) will now automatically propagate to copy_user_page().

Signed-off-by: Florian Schmaus <florian.schmaus@codasip.com>
Link: https://patch.msgid.link/20260113134025.905627-1-florian.schmaus@codasip.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/page.h