mirror of
https://github.com/torvalds/linux
synced 2024-10-10 05:16:04 +00:00
habanalabs: cast int to u32 before printing it with %u
%u is used for unsigned so we need to cast the int variable to u32 to avoid compiler warning. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Tomer Tayar <ttayar@habana.ai> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
This commit is contained in:
parent
f5b9c8cf25
commit
f907af183b
|
@ -286,7 +286,7 @@ static int device_early_init(struct hl_device *hdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) {
|
for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) {
|
||||||
snprintf(workq_name, 32, "hl-free-jobs-%u", i);
|
snprintf(workq_name, 32, "hl-free-jobs-%u", (u32) i);
|
||||||
hdev->cq_wq[i] = create_singlethread_workqueue(workq_name);
|
hdev->cq_wq[i] = create_singlethread_workqueue(workq_name);
|
||||||
if (hdev->cq_wq[i] == NULL) {
|
if (hdev->cq_wq[i] == NULL) {
|
||||||
dev_err(hdev->dev, "Failed to allocate CQ workqueue\n");
|
dev_err(hdev->dev, "Failed to allocate CQ workqueue\n");
|
||||||
|
|
Loading…
Reference in a new issue