projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s390: Fix some compiler warnings
[urcu.git]
/
arch_atomic_s390.h
diff --git
a/arch_atomic_s390.h
b/arch_atomic_s390.h
index cb85e6a0ae80b83698f2a23ba1630ff53ca3425a..37fb89f407c6efb4ddd6b257c94747bf3817fd8f 100644
(file)
--- a/
arch_atomic_s390.h
+++ b/
arch_atomic_s390.h
@@
-29,7
+29,7
@@
#ifndef _INCLUDE_API_H
#ifndef _INCLUDE_API_H
-static __attribute__((always_inline))
+static
inline
__attribute__((always_inline))
unsigned int atomic_exchange_32(volatile unsigned int *addr, unsigned int val)
{
unsigned int result;
unsigned int atomic_exchange_32(volatile unsigned int *addr, unsigned int val)
{
unsigned int result;
@@
-46,7
+46,7
@@
unsigned int atomic_exchange_32(volatile unsigned int *addr, unsigned int val)
#if (BITS_PER_LONG == 64)
#if (BITS_PER_LONG == 64)
-static __attribute__((always_inline))
+static
inline
__attribute__((always_inline))
unsigned long atomic_exchange_64(volatile unsigned long *addr,
unsigned long val)
{
unsigned long atomic_exchange_64(volatile unsigned long *addr,
unsigned long val)
{
@@
-64,7
+64,7
@@
unsigned long atomic_exchange_64(volatile unsigned long *addr,
#endif
#endif
-static __attribute__((always_inline))
+static
inline
__attribute__((always_inline))
unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len)
{
switch (len) {
unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len)
{
switch (len) {
@@
-81,8
+81,9
@@
unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len)
return 0;
}
return 0;
}
-#define xchg(addr, v) (__typeof__(*(addr))) _atomic_exchange((addr), (v), \
- sizeof(*(addr)))
+#define xchg(addr, v) \
+ (__typeof__(*(addr))) _atomic_exchange((addr), (unsigned long)(v), \
+ sizeof(*(addr)))
#endif /* #ifndef _INCLUDE_API_H */
#endif /* #ifndef _INCLUDE_API_H */
This page took
0.02337 seconds
and
4
git commands to generate.