]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit9138af0500f67155eebe41b6e4cd0d13280959a4
treeb7a104be59f59c1c5668cd8d632604aa5fb895bb
parent88cb56b0f8924e1a951605381de06cdb10b5e207
futex: Update comments and docs about return values of arch futex code

BugLink: https://bugs.launchpad.net/bugs/1838824
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Documentation/robust-futexes.txt
include/asm-generic/futex.h