frv: add atomic64_add_unless()
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 24 Jan 2017 23:18:21 +0000 (15:18 -0800)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:59:11 +0000 (02:59 +0000)
commit01f65aad08112d7e41df01a65cc60da2d86e1c77
tree66aa06e7c7c9ff8de683fe0e6ba3cdc52ed69343
parentbdd15c35075d01226338d631030b56753ef58ff7
frv: add atomic64_add_unless()

[ Upstream commit 545d58f677b21401f6de1ac12c25cc109f903ace ]

The build of frv allmodconfig was failing with the error:
lib/atomic64_test.c:209:9: error:

implicit declaration of function 'atomic64_add_unless'

All the atomic64 operations were defined in frv, but
atomic64_add_unless() was not done.

Implement atomic64_add_unless() as done in other arches.

Link: http://lkml.kernel.org/r/1484781236-6698-1-git-send-email-sudipm.mukherjee@gmail.com
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/frv/include/asm/atomic.h