linux/drivers/misc/habanalabs/common
Arnd Bergmann 82948e6e1d habanalabs: fix kernel pointer type
All throughout the driver, normal kernel pointers are
stored as 'u64' struct members, which is kind of silly
and requires casting through a uintptr_t to void* every
time they are used.

There is one line that missed the intermediate uintptr_t
case, which leads to a compiler warning:

drivers/misc/habanalabs/common/command_buffer.c: In function 'hl_cb_mmap':
drivers/misc/habanalabs/common/command_buffer.c:512:44: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  512 |  rc = hdev->asic_funcs->cb_mmap(hdev, vma, (void *) cb->kernel_address,

Rather than adding one more cast, just fix the type and
remove all the other casts.

Fixes: 0db575350c ("habanalabs: make use of dma_mmap_coherent")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2020-11-04 08:56:06 +02:00
..
asid.c
command_buffer.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
command_submission.c habanalabs: allow to wait on CS without sleep 2020-09-22 18:49:53 +03:00
context.c habanalabs: add notice of device not idle 2020-09-25 14:44:21 +03:00
debugfs.c habanalabs: Save context in a command buffer object 2020-09-22 18:49:54 +03:00
device.c habanalabs: release kernel context after hw_fini 2020-09-25 14:44:20 +03:00
firmware_if.c habanalabs: add indication of security-enabled F/W 2020-09-22 18:49:54 +03:00
habanalabs.h habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
habanalabs_drv.c habanalabs: PCIe Advanced Error Reporting support 2020-09-22 18:49:49 +03:00
habanalabs_ioctl.c habanalabs: replace armcp with the generic cpucp 2020-09-22 18:49:51 +03:00
hw_queue.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
hwmon.c habanalabs: replace armcp with the generic cpucp 2020-09-22 18:49:51 +03:00
irq.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
Makefile habanalabs: refactor MMU as device-oriented 2020-09-22 18:49:53 +03:00
memory.c habanalabs: correct an error message 2020-09-25 14:44:20 +03:00
mmu.c habanalabs: refactor MMU as device-oriented 2020-09-22 18:49:53 +03:00
mmu_v1.c habanalabs: refactor MMU as device-oriented 2020-09-22 18:49:53 +03:00
pci.c habanalabs: add indication of security-enabled F/W 2020-09-22 18:49:54 +03:00
sysfs.c habanalabs: replace armcp with the generic cpucp 2020-09-22 18:49:51 +03:00