]> Git Repo - linux.git/commitdiff
habanalabs: cast to expected type
authorOded Gabbay <[email protected]>
Sun, 3 Mar 2019 08:23:29 +0000 (10:23 +0200)
committerOded Gabbay <[email protected]>
Sun, 3 Mar 2019 08:23:29 +0000 (10:23 +0200)
This patch fix the following sparse warning:

drivers/misc/habanalabs/goya/goya.c:3646:14: warning: incorrect type in
assignment (different address spaces)
drivers/misc/habanalabs/goya/goya.c:3646:14:    expected void *base
drivers/misc/habanalabs/goya/goya.c:3646:14:    got void [noderef] <asn:2> *

Signed-off-by: Oded Gabbay <[email protected]>
drivers/misc/habanalabs/goya/goya.c

index 538d8d59d9dc09f96c2ff326e3d0b469f2e75c38..ea979ebd62fb8c5f30d08b052a0e481325470ece 100644 (file)
@@ -3009,7 +3009,7 @@ void *goya_get_int_queue_base(struct hl_device *hdev, u32 queue_id,
 
        *dma_handle = hdev->asic_prop.sram_base_address;
 
-       base = hdev->pcie_bar[SRAM_CFG_BAR_ID];
+       base = (void *) hdev->pcie_bar[SRAM_CFG_BAR_ID];
 
        switch (queue_id) {
        case GOYA_QUEUE_ID_MME:
This page took 0.063261 seconds and 4 git commands to generate.