OSDN Git Service

sh: Implement __get_user_u64() required for 64-bit get_user()
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 11 Jun 2020 07:58:11 +0000 (09:58 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:04 +0000 (22:05 -0400)
commit2d2b308a8b7d0aeeadeabd8d7f329bb8200f2e2b
treeeb3d9096b05a637ff220788dfa8c6541a171b4db
parent2202d81b098ef776153c6b40c5404d486042a3ed
sh: Implement __get_user_u64() required for 64-bit get_user()

Trying to build the kernel with CONFIG_INFINIBAND_USER_ACCESS enabled fails

     ERROR: "__get_user_unknown" [drivers/infiniband/core/ib_uverbs.ko] undefined!

with on SH since the kernel misses a 64-bit implementation of get_user().

Implement the missing 64-bit get_user() as __get_user_u64(), matching the
already existing __put_user_u64() which implements the 64-bit put_user().

Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Acked-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/asm/uaccess_32.h