]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/uaccess: Remove calls to __get_user_bad() and __put_user_bad()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 10 Mar 2021 17:46:49 +0000 (17:46 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 3 Apr 2021 10:22:02 +0000 (21:22 +1100)
commitf3906281596efe4cff9824c68aa026a2859e2226
treee43c7690c69823b263b4d58f17b298ad2a065792
parent97d0195971c2c0147d0986babf947e2b3d123ec4
powerpc/uaccess: Remove calls to __get_user_bad() and __put_user_bad()

__get_user_bad() and __put_user_bad() are functions that are
declared but not defined, in order to make the link fail in
case they are called.

Nowadays, we have BUILD_BUG() and BUILD_BUG_ON() for that, and
they have the advantage to break the build earlier as it breaks
it at compile time instead of link time.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/d7d839e994f49fae4ff7b70fac72bd951272436b.1615398265.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/uaccess.h