mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Linux: Fix RX atomics for kernel mode
Fix a mistake with the definition of rx_atomic_set, and add the missing declaration of rx_dec_and_read for Linux kernel builds Change-Id: Ieed7a369670c051abc02d8cc831e8736969fb67a Reviewed-on: http://gerrit.openafs.org/3942 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
91f9a7f64b
commit
fe231190d8
@ -129,12 +129,13 @@ rx_atomic_sub(rx_atomic_t *atomic, int change) {
|
||||
|
||||
typedef atomic_t rx_atomic_t;
|
||||
|
||||
#define rx_atomic_set(X) atomic_set(X)
|
||||
#define rx_atomic_set(X, V) atomic_set(X, V)
|
||||
#define rx_atomic_read(X) atomic_read(X)
|
||||
#define rx_atomic_inc(X) atomic_inc(X)
|
||||
#define rx_atomic_inc_and_read(X) atomic_inc_return(X)
|
||||
#define rx_atomic_add(X, V) atomic_add(V, X)
|
||||
#define rx_atomic_dec(X) atomic_dec(X)
|
||||
#define rx_atomic_dec_and_read(X) atomic_dec_return(X)
|
||||
#define rx_atomic_sub(X, V) atomic_sub(V, X)
|
||||
|
||||
#elif defined(AFS_SUN510_ENV) || (defined(AFS_SUN58_ENV) && defined(KERNEL) && !defined(UKERNEL))
|
||||
|
Loading…
x
Reference in New Issue
Block a user