]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/uaccess: Remove {allow/prevent}_{read/write/read_write}_{from/to/}_user()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 24 Dec 2025 11:20:51 +0000 (12:20 +0100)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 7 Jan 2026 04:01:04 +0000 (09:31 +0530)
commit5458989a0e48c2bd51a7d37a04ff6ae489fe5458
treefea53cc8093e3aaa12188584c841e5611507a8f8
parente3efbfbfaaaa739072b2756cfb76cd3de6d91c0f
powerpc/uaccess: Remove {allow/prevent}_{read/write/read_write}_{from/to/}_user()

The six following functions have become simple single-line fonctions
that do not have much added value anymore:
- allow_read_from_user()
- allow_write_to_user()
- allow_read_write_user()
- prevent_read_from_user()
- prevent_write_to_user()
- prevent_read_write_user()

Directly call allow_user_access() and prevent_user_access(), it doesn't
reduce the readability and it removes unnecessary middle functions.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/70971f0ba81eab742a120e5bfdeff6b42d08fd98.1766574657.git.chleroy@kernel.org
arch/powerpc/include/asm/kup.h
arch/powerpc/include/asm/uaccess.h