提交 5f7426c0 编写于 作者: D David S. Miller

[SPARC64]: Tweak assertions in sun4v_build_virq().

They are too strict.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2a263021
...@@ -701,10 +701,10 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino) ...@@ -701,10 +701,10 @@ unsigned int sun4v_build_virq(u32 devhandle, unsigned int devino)
{ {
unsigned long sysino, hv_err; unsigned long sysino, hv_err;
BUG_ON(devhandle & ~IMAP_IGN); BUG_ON(devhandle & devino);
BUG_ON(devino & ~IMAP_INO);
sysino = devhandle | devino; sysino = devhandle | devino;
BUG_ON(sysino & ~(IMAP_IGN | IMAP_INO));
hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino); hv_err = sun4v_vintr_set_cookie(devhandle, devino, sysino);
if (hv_err) { if (hv_err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册