提交 02ba6c3c 编写于 作者: Y Yu'an Wang 提交者: Yang Yingliang

qm: fixup compilation dependency

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

In this patch, we try to fixup compilation problem of __hisi_qm_start,
when we close CONFIG_CRYPTO_QM_UACCE.If we have not defined this macro,
we do not use para qm->reserve and qm->reserve_dma.
Signed-off-by: NYu'an Wang <wangyuan46@huawei.com>
Reviewed-by: NCheng Hu <hucheng.hu@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 12a20396
......@@ -2198,10 +2198,13 @@ static int __hisi_qm_start(struct hisi_qm *qm)
QM_INIT_BUF(qm, aeqe, QM_Q_DEPTH);
QM_INIT_BUF(qm, sqc, qm->qp_num);
QM_INIT_BUF(qm, cqc, qm->qp_num);
#ifdef CONFIG_CRYPTO_QM_UACCE
/* get reserved dma memory */
qm->reserve = qm->qdma.va + off;
qm->reserve_dma = qm->qdma.dma + off;
off += PAGE_SIZE;
#endif
ret = qm_eq_aeq_ctx_cfg(qm);
if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册