diff options
| author | Zhang Lixu <[email protected]> | 2024-05-23 01:14:01 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2024-05-23 12:12:48 +0000 |
| commit | 2360497238261f17d4a3f6cbc02d6dbd8951c23c (patch) | |
| tree | ad8129a4ef79f894389b1f212442ae7b8411f49c /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | Merge tag 'linux_kselftest-next-6.10-rc1-fixes' of git://git.kernel.org/pub/s... (diff) | |
| download | kernel-2360497238261f17d4a3f6cbc02d6dbd8951c23c.tar.gz kernel-2360497238261f17d4a3f6cbc02d6dbd8951c23c.zip | |
HID: intel-ish-hid: Fix build error for COMPILE_TEST
kernel test robot reported build error due to a pointer type mismatch:
.../ishtp/loader.c:172:8: error: incompatible pointer types passing
'__le64 *' (aka 'unsigned long long *') to parameter of type
'dma_addr_t *' (aka 'unsigned int *')
The issue arises because the driver, which is primarily intended for
x86-64, is also built for i386 when COMPILE_TEST is enabled.
Resolve type mismatch by using a temporary dma_addr_t variable to hold
the DMA address. Populate this temporary variable in dma_alloc_coherent()
function, and then convert and store the address in the
fragment->fragment_tbl[i].ddr_adrs field in the correct format.
Similarly, convert the ddr_adrs field back to dma_addr_t when freeing
the DMA buffer with dma_free_coherent().
Fixes: 579a267e4617 ("HID: intel-ish-hid: Implement loading firmware from host feature")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Zhang Lixu <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
