diff options
author | David S. Miller <davem@davemloft.net> | 2012-11-10 04:37:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-10 04:37:59 +0100 |
commit | 193d2aadc0ff5c687f6f0d5ef1d38c86ab511a14 (patch) | |
tree | 294286e259a08c977e3e71819b2c1d763b13312f /arch/sparc/lib/ksyms.c | |
parent | of/address: sparc: Declare of_address_to_resource() as an extern function for... (diff) | |
download | linux-193d2aadc0ff5c687f6f0d5ef1d38c86ab511a14.tar.xz linux-193d2aadc0ff5c687f6f0d5ef1d38c86ab511a14.zip |
sparc: Support atomic64_dec_if_positive properly.
Sparc32 already supported it, as a consequence of using the
generic atomic64 implementation. And the sparc64 implementation
is rather trivial.
This allows us to set ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE for all
of sparc, and avoid the annoying warning from lib/atomic64_test.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/ksyms.c')
-rw-r--r-- | arch/sparc/lib/ksyms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/lib/ksyms.c b/arch/sparc/lib/ksyms.c index ee31b884c61b..0c4e35e522fa 100644 --- a/arch/sparc/lib/ksyms.c +++ b/arch/sparc/lib/ksyms.c @@ -116,6 +116,7 @@ EXPORT_SYMBOL(atomic64_add); EXPORT_SYMBOL(atomic64_add_ret); EXPORT_SYMBOL(atomic64_sub); EXPORT_SYMBOL(atomic64_sub_ret); +EXPORT_SYMBOL(atomic64_dec_if_positive); /* Atomic bit operations. */ EXPORT_SYMBOL(test_and_set_bit); |