diff options
| author | Arnd Bergmann <[email protected]> | 2015-10-07 07:41:27 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2015-10-07 13:59:18 +0000 |
| commit | 028423b0d8fa27c30a46da4af2a5cab230369de6 (patch) | |
| tree | 6181d44b0dc211d3a846d95aacbb7f1e3bd9c11f /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
| parent | drm/amdgpu: flag iceland as experimental (diff) | |
| download | kernel-028423b0d8fa27c30a46da4af2a5cab230369de6.tar.gz kernel-028423b0d8fa27c30a46da4af2a5cab230369de6.zip | |
drm/amdgpu: fix 32-bit compiler warning
The new amdgpu driver passes a user space pointer in a 64-bit structure
member, which is the correct way to do it, but it attempts to
directly cast it to a __user pointer in the kernel, which causes
a warning in three places:
drm/amd/amdgpu/amdgpu_cs.c: In function 'amdgpu_cs_parser_init':
drm/amd/amdgpu/amdgpu_cs.c:180:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
chunk_array_user = (uint64_t __user *)(cs->in.chunks);
This changes all three to add an intermediate cast to 'unsigned long'
as other drivers do. This avoids the warning and works correctly on
both 32-bit and 64-bit architectures.
Fixes: e60b344f6c0eff ("drm/amdgpu: optimize amdgpu_parser_init")
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions
