summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfarah kassabri <fkassabri@habana.ai>2022-11-28 12:11:44 +0100
committerOded Gabbay <ogabbay@kernel.org>2023-01-26 09:56:22 +0100
commitb4af9ee9b91347a968c1232089c6b3750859900e (patch)
tree4132fb5d179893b8817b52ddd2de40b5db908ab8
parenthabanalabs/gaudi2: wait for preboot ready if HW state is dirty (diff)
downloadlinux-b4af9ee9b91347a968c1232089c6b3750859900e.tar.xz
linux-b4af9ee9b91347a968c1232089c6b3750859900e.zip
habanalabs: fix wrong variable type used for vzalloc
vzalloc expects void* and not void __iomem*. Signed-off-by: farah kassabri <fkassabri@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
-rw-r--r--drivers/misc/habanalabs/common/firmware_if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/firmware_if.c b/drivers/misc/habanalabs/common/firmware_if.c
index cda0bf3dbf1b..ee4d1c5ca527 100644
--- a/drivers/misc/habanalabs/common/firmware_if.c
+++ b/drivers/misc/habanalabs/common/firmware_if.c
@@ -2019,9 +2019,10 @@ static int hl_fw_dynamic_read_and_validate_descriptor(struct hl_device *hdev,
struct fw_load_mgr *fw_loader)
{
struct lkd_fw_comms_desc *fw_desc;
- void __iomem *src, *temp_fw_desc;
struct pci_mem_region *region;
struct fw_response *response;
+ void *temp_fw_desc;
+ void __iomem *src;
u16 fw_data_size;
enum pci_region region_id;
int rc;