mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
isert: Warn user of potential compilation issue
Signed-off-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5861 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -810,6 +810,11 @@ static struct isert_device *isert_device_create(struct ib_device *ib_dev)
|
||||
cqe_num = min(isert_dev->device_attr.max_cqe, ISER_CQ_ENTRIES);
|
||||
cqe_num = cqe_num / isert_dev->num_cqs;
|
||||
|
||||
#ifdef CONFIG_SCST_EXTRACHECKS
|
||||
if (isert_dev->device_attr.max_cqe == 0)
|
||||
pr_err("Zero max_cqe encountered: you may have a compilation problem\n");
|
||||
#endif
|
||||
|
||||
for (i = 0; i < isert_dev->num_cqs; ++i) {
|
||||
struct isert_cq *cq_desc = &isert_dev->cq_desc[i];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user