提交 f64fa677 编写于 作者: C Christoph Lameter 提交者: Tony Luck

[IA64] Fix missing parameter for local_add/sub

Local add/sub macros need to have a parameter to specify
the addend/subtrahend respectively.
Signed-off-by: NChristoph Lameter <clameter@sgi.org>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 590711b7
......@@ -17,8 +17,8 @@ typedef struct {
#define local_set(l, i) atomic64_set(&(l)->val, i)
#define local_inc(l) atomic64_inc(&(l)->val)
#define local_dec(l) atomic64_dec(&(l)->val)
#define local_add(l) atomic64_add(&(l)->val)
#define local_sub(l) atomic64_sub(&(l)->val)
#define local_add(i, l) atomic64_add((i), &(l)->val)
#define local_sub(i, l) atomic64_sub((i), &(l)->val)
/* Non-atomic variants, i.e., preemption disabled and won't be touched in interrupt, etc. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册