habanalabs/goya: add '__force' attribute to suppress false alarm
fix (suppress) the following sparse warnings: 'warning: cast removes address space of expression' Signed-off-by: Koby Elbaz <kelbaz@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
e307b302be
commit
f18cb6b58e
|
@ -2937,7 +2937,7 @@ void *goya_get_int_queue_base(struct hl_device *hdev, u32 queue_id,
|
|||
|
||||
*dma_handle = hdev->asic_prop.sram_base_address;
|
||||
|
||||
base = (void *) hdev->pcie_bar[SRAM_CFG_BAR_ID];
|
||||
base = (__force void *) hdev->pcie_bar[SRAM_CFG_BAR_ID];
|
||||
|
||||
switch (queue_id) {
|
||||
case GOYA_QUEUE_ID_MME:
|
||||
|
|
Loading…
Reference in New Issue