提交 4cd69b98 编写于 作者: H Huang Ying 提交者: Linus Torvalds

kexec: fix compilation warning on xchg(&kexec_lock, 0) in kernel_kexec()

kernel/kexec.c: In function 'kernel_kexec':
kernel/kexec.c:1506: warning: value computed is not used
Signed-off-by: NHuang Ying <ying.huang@intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ce289e89
......@@ -1503,7 +1503,8 @@ int kernel_kexec(void)
}
Unlock:
xchg(&kexec_lock, 0);
if (!xchg(&kexec_lock, 0))
BUG();
return error;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册