提交 b6e969db 编写于 作者: C Claudiu Manoil 提交者: Scott Wood

soc/qman: Fix direct access to fd's addr_lo, use proper accesor

Use the proper accessor to get the FD address.
Accessing the internal field "addr_lo" directly is not portable
and error prone.
Signed-off-by: NClaudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: NScott Wood <oss@buserror.net>
上级 9f3670e8
...@@ -1239,8 +1239,8 @@ static int qman_create_portal(struct qman_portal *portal, ...@@ -1239,8 +1239,8 @@ static int qman_create_portal(struct qman_portal *portal,
/* special handling, drain just in case it's a few FQRNIs */ /* special handling, drain just in case it's a few FQRNIs */
const union qm_mr_entry *e = qm_mr_current(p); const union qm_mr_entry *e = qm_mr_current(p);
dev_err(c->dev, "MR dirty, VB 0x%x, rc 0x%x\n, addr 0x%x", dev_err(c->dev, "MR dirty, VB 0x%x, rc 0x%x, addr 0x%llx\n",
e->verb, e->ern.rc, e->ern.fd.addr_lo); e->verb, e->ern.rc, qm_fd_addr_get64(&e->ern.fd));
goto fail_dqrr_mr_empty; goto fail_dqrr_mr_empty;
} }
/* Success */ /* Success */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册