diff options
author | David S. Miller <davem@davemloft.net> | 2018-04-03 08:24:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-03 08:24:35 -0700 |
commit | d13864b68e41c11e4231de90cf358658f6ecea45 (patch) | |
tree | f44c955ab5afa697d91f214b74b5ed651a46db9d /include | |
parent | 49d7006d9f01d435661d03bbea3db4c33935b3d8 (diff) | |
download | linux-d13864b68e41c11e4231de90cf358658f6ecea45.tar.gz linux-d13864b68e41c11e4231de90cf358658f6ecea45.tar.bz2 linux-d13864b68e41c11e4231de90cf358658f6ecea45.zip |
sparc64: Make atomic_xchg() an inline function rather than a macro.
This avoids a lot of -Wunused warnings such as:
====================
kernel/debug/debug_core.c: In function ‘kgdb_cpu_enter’:
./arch/sparc/include/asm/cmpxchg_64.h:55:22: warning: value computed is not used [-Wunused-value]
#define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
./arch/sparc/include/asm/atomic_64.h:86:30: note: in expansion of macro ‘xchg’
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
^~~~
kernel/debug/debug_core.c:508:4: note: in expansion of macro ‘atomic_xchg’
atomic_xchg(&kgdb_active, cpu);
^~~~~~~~~~~
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions