summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorManfred Spraul2018-08-22 07:02:04 +0200
committerLinus Torvalds2018-08-22 19:52:52 +0200
commit2a9d6481004215da8e93edb588cf448f2af80303 (patch)
tree8ce2a97df46ba44963cbc517f58707fc1ee7eb4d /mm/oom_kill.c
parentipc/util.c: further variable name cleanups (diff)
downloadkernel-qcow2-linux-2a9d6481004215da8e93edb588cf448f2af80303.tar.gz
kernel-qcow2-linux-2a9d6481004215da8e93edb588cf448f2af80303.tar.xz
kernel-qcow2-linux-2a9d6481004215da8e93edb588cf448f2af80303.zip
ipc/util.c: update return value of ipc_getref from int to bool
ipc_getref has still a return value of type "int", matching the atomic_t interface of atomic_inc_not_zero()/atomic_add_unless(). ipc_getref now uses refcount_inc_not_zero, which has a return value of type "bool". Therefore, update the return code to avoid implicit conversions. Link: http://lkml.kernel.org/r/20180712185241.4017-13-manfred@colorfullife.com Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Kees Cook <keescook@chromium.org> Cc: Michael Kerrisk <mtk.manpages@gmail.com> Cc: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions