futex: Update comments and docs about return values of arch futex code
authorWill Deacon <will.deacon@arm.com>
Wed, 10 Apr 2019 10:51:54 +0000 (11:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 11:14:49 +0000 (13:14 +0200)
commita319c8ff4f09cae9936385a9297b1b29165e2d8c
tree785d9330c244d5f7e4f15d1a84b5bacc76a7f25d
parent4423a82cbde399ada728c5d027972f20d64ae4ae
futex: Update comments and docs about return values of arch futex code

commit 427503519739e779c0db8afe876c1b33f3ac60ae upstream.

The architecture implementations of 'arch_futex_atomic_op_inuser()' and
'futex_atomic_cmpxchg_inatomic()' are permitted to return only -EFAULT,
-EAGAIN or -ENOSYS in the case of failure.

Update the comments in the asm-generic/ implementation and also a stray
reference in the robust futex documentation.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/robust-futexes.txt
include/asm-generic/futex.h