]> git.baikalelectronics.ru Git - kernel.git/commit
No need of likely/unlikely on calls of check_copy_size()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jun 2022 22:42:59 +0000 (18:42 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Jun 2022 20:18:08 +0000 (16:18 -0400)
commit62c7f096062ea4c94e79ab46544cc315e0155fb6
tree183000d0206ce0fc5c925d1f23819988a853b63e
parentf040cca4b0da0180bf9de9141ef5c95f60f85182
No need of likely/unlikely on calls of check_copy_size()

it's inline and unlikely() inside of it (including the implicit one
in WARN_ON_ONCE()) suffice to convince the compiler that getting
false from check_copy_size() is unlikely.

Spotted-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/powerpc/include/asm/uaccess.h
arch/s390/include/asm/uaccess.h
include/linux/uaccess.h
include/linux/uio.h