linux/drivers/misc/habanalabs/goya
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
..
Makefile habanalabs: fix up absolute include instructions 2020-07-29 08:15:50 +02:00
goya.c habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
goyaP.h habanalabs: fix kernel pointer type 2020-11-04 08:56:06 +02:00
goya_coresight.c habanalabs: proper handling of alloc size in coresight 2020-08-22 12:47:57 +03:00
goya_hwmgr.c habanalabs: fix pm manual->auto in GOYA 2020-03-24 10:54:17 +02:00
goya_security.c habanalabs: fix up absolute include instructions 2020-07-29 08:15:50 +02:00