Skip to content

Commit 7c22278

Browse files
committed
habanalabs: cast to expected type
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 <oded.gabbay@gmail.com>
1 parent 7cb5101 commit 7c22278

File tree

1 file changed

+1
-1
lines changed
  • drivers/misc/habanalabs/goya

1 file changed

+1
-1
lines changed

drivers/misc/habanalabs/goya/goya.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3009,7 +3009,7 @@ void *goya_get_int_queue_base(struct hl_device *hdev, u32 queue_id,
30093009

30103010
*dma_handle = hdev->asic_prop.sram_base_address;
30113011

3012-
base = hdev->pcie_bar[SRAM_CFG_BAR_ID];
3012+
base = (void *) hdev->pcie_bar[SRAM_CFG_BAR_ID];
30133013

30143014
switch (queue_id) {
30153015
case GOYA_QUEUE_ID_MME:

0 commit comments

Comments
 (0)