summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-10-26 17:08:06 +0100
committerOded Gabbay <ogabbay@kernel.org>2020-11-04 08:56:06 +0200
commit82948e6e1d88d2383b82bd3f95c4241a674cd3d9 (patch)
tree337f6e9e01edeb0cbebc43f33042dd3aacdc54a9 /kernel
parentbcbc0b2e275f0a797de11a10eff495b4571863fc (diff)
downloadlinux-82948e6e1d88d2383b82bd3f95c4241a674cd3d9.tar.bz2
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: 0db575350cb1 ("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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions