mirror_ubuntu-kernels/drivers/gpu/drm/ttm
Huang Rui 282abb5a1f drm/ttm: fix the type mismatch error on sparc64
__fls() on sparc64 return "int", but here it is expected as "unsigned
long" (x86). It will cause the build errors because the warning becomes
fatal while it is using sparc configuration. As suggested by Linus, it
can use min_t instead of min to force the type as "unsigned int".

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210907100302.3684453-1-ray.huang@amd.com
2021-09-15 10:18:27 +02:00
..
Makefile drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_agp_backend.c drm/ttm: cleanup ttm_agp_backend 2021-05-03 12:50:41 +02:00
ttm_bo_util.c drm/ttm: Fix ttm_bo_move_memcpy() for subclassed struct ttm_resource 2021-08-31 10:48:26 +02:00
ttm_bo_vm.c drm/ttm: nuke VM_MIXEDMAP on BO mappings v3 2021-06-08 11:47:51 +02:00
ttm_bo.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00
ttm_device.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00
ttm_execbuf_util.c drm/ttm: switch to per device LRU lock 2021-03-24 17:05:25 +01:00
ttm_module.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00
ttm_module.h drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_pool.c drm/ttm: fix the type mismatch error on sparc64 2021-09-15 10:18:27 +02:00
ttm_range_manager.c drm/ttm: Try to check if new ttm man out of bounds during compile 2021-09-13 10:14:28 +02:00
ttm_resource.c drm/ttm: cleanup ttm_resource_compat 2021-09-03 11:03:59 +02:00
ttm_sys_manager.c drm/ttm: flip the switch for driver allocated resources v2 2021-06-04 15:16:46 +02:00
ttm_tt.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00