Fix allmodconfig build frame size is large than 2048 bytes error in hiroce3 driver.
Fixes: ae52f9c522dd ("infiniband/hw/hiroce3: Add Huawei Intelligent Network Card RDMA Driver") Shuai Wu (1): RDMA/hiroce3: Fix allmodconfig build frame size error
drivers/infiniband/hw/hiroce3/dfx/roce_dfx_query.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/9239 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/L...
FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/9239 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/L...
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IA6P6T CVE: NA
---------------------------------
Fix allmodconfig build frame size is large than 2048 bytes error in hiroce3 driver.
Fixes: ae52f9c522dd ("infiniband/hw/hiroce3: Add Huawei Intelligent Network Card RDMA Driver") Signed-off-by: Shuai Wu wushuai51@huawei.com --- drivers/infiniband/hw/hiroce3/dfx/roce_dfx_query.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/infiniband/hw/hiroce3/dfx/roce_dfx_query.c b/drivers/infiniband/hw/hiroce3/dfx/roce_dfx_query.c index 1058ba0ac5b8..e624225f086f 100644 --- a/drivers/infiniband/hw/hiroce3/dfx/roce_dfx_query.c +++ b/drivers/infiniband/hw/hiroce3/dfx/roce_dfx_query.c @@ -73,15 +73,13 @@ static int roce3_dfx_get_dev_algo(const struct roce3_dfx_query_inbuf *inbuf, struct roce3_device *rdev, union roce3_dfx_query_outbuf *outbuf) { u32 cc_algo; - struct roce3_ecn_ctx ecn_ctx; u32 *algo_type = &outbuf->algo_type;
if (rdev == NULL) { pr_err("[ROCE, ERR] %s: Failed to get roce device.\n", __func__); return -EINVAL; } - ecn_ctx = rdev->ecn_ctx; - cc_algo = ecn_ctx.cc_algo; + cc_algo = rdev->ecn_ctx.cc_algo; *algo_type = cc_algo;
return 0;