Skip to content

Commit

Permalink
habanalabs: cast to expected type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oded Gabbay committed Mar 3, 2019
1 parent 7cb5101 commit 7c22278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/habanalabs/goya/goya.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7c22278

Please sign in to comment.