mirror of
https://github.com/torvalds/linux
synced 2024-10-10 05:16:04 +00:00
82948e6e1d
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:
|
||
---|---|---|
.. | ||
asid.c | ||
command_buffer.c | ||
command_submission.c | ||
context.c | ||
debugfs.c | ||
device.c | ||
firmware_if.c | ||
habanalabs.h | ||
habanalabs_drv.c | ||
habanalabs_ioctl.c | ||
hw_queue.c | ||
hwmon.c | ||
irq.c | ||
Makefile | ||
memory.c | ||
mmu.c | ||
mmu_v1.c | ||
pci.c | ||
sysfs.c |