linux/net/sunrpc/auth_gss
Arnd Bergmann 2192476586 SUNRPC: use cmpxchg64() in gss_seq_send64_fetch_and_inc()
The newly introduced gss_seq_send64_fetch_and_inc() fails to build on
32-bit architectures:

net/sunrpc/auth_gss/gss_krb5_seal.c:144:14: note: in expansion of macro 'cmpxchg'
   seq_send = cmpxchg(&ctx->seq_send64, old, old + 1);
              ^~~~~~~
arch/x86/include/asm/cmpxchg.h:128:3: error: call to '__cmpxchg_wrong_size' declared with attribute error: Bad argument size for cmpxchg
   __cmpxchg_wrong_size();     \

As the message tells us, cmpxchg() cannot be used on 64-bit arguments,
that's what cmpxchg64() does.

Fixes: 571ed1fd23 ("SUNRPC: Replace krb5_seq_lock with a lockless scheme")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
2018-10-05 09:32:37 -04:00
..
auth_gss.c SUNRPC: The transmitted message must lie in the RPCSEC window of validity 2018-09-30 15:35:13 -04:00
gss_generic_token.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00
gss_krb5_crypto.c NFS client updates for Linux 4.19 2018-08-23 16:03:58 -07:00
gss_krb5_keys.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00
gss_krb5_mech.c sunrpc: GFP_KERNEL should be GFP_NOFS in crypto code 2016-11-01 15:47:52 -04:00
gss_krb5_seal.c SUNRPC: use cmpxchg64() in gss_seq_send64_fetch_and_inc() 2018-10-05 09:32:37 -04:00
gss_krb5_seqnum.c sunrpc: Use skcipher and ahash/shash 2016-01-27 20:36:01 +08:00
gss_krb5_unseal.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00
gss_krb5_wrap.c SUNRPC: Replace krb5_seq_lock with a lockless scheme 2018-09-30 15:35:18 -04:00
gss_mech_switch.c SUNRPC: Lockless lookup of RPCSEC_GSS mechanisms 2018-09-30 15:35:17 -04:00
gss_rpc_upcall.c sunrpc: Extract target name into svc_cred 2018-08-22 18:32:07 -04:00
gss_rpc_upcall.h Merge branch 'nfs-for-next' of git://linux-nfs.org/~trondmy/nfs-2.6 into for-3.10 2013-04-29 16:23:34 -04:00
gss_rpc_xdr.c SUNRPC: Add a label for RPC calls that require allocation on receive 2018-09-30 15:35:16 -04:00
gss_rpc_xdr.h sunrpc/auth_gss: fix decoder callback prototypes 2017-07-13 15:57:55 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
svcauth_gss.c sunrpc: whitespace fixes 2018-07-31 12:53:40 -04:00