linux-stable/drivers/gpu/drm/ttm
Huang Rui 3ca706c189 drm/ttm: fix type mismatch error on sparc64
On sparc64, __fls() returns an "int", but the drm TTM code expected it
to be "unsigned long" as on x86.  As a result, on sparc (and arc, and
m68k) you get build errors because 'min()' checks that the types match.

As suggested by Linus, it can use min_t instead of min to force the type
to be "unsigned int".

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexdeucher@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-14 13:36:02 -07: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.c drm/ttm: Fix a deadlock if the target BO is not idle during swap 2021-09-10 16:18:53 +10: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_device.c drm: ttm: Don't bail from ttm_global_init if debugfs_create_dir fails 2021-08-16 14:11:51 +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 drm/ttm: Initialize debugfs from ttm_global_init() 2021-07-22 12:09:12 +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 type mismatch error on sparc64 2021-09-14 13:36:02 -07:00
ttm_range_manager.c drm/ttm: add a check against null pointer dereference 2021-07-14 17:16:16 +02:00
ttm_resource.c drm/ttm: Add a generic TTM memcpy move for page-based iomem 2021-06-07 16:07:08 +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 drm/ttm: Include pagemap.h from ttm_tt.h 2021-08-16 14:44:05 +02:00