diff options
author | Huang Rui <[email protected]> | 2021-09-07 18:03:02 +0800 |
---|---|---|
committer | Christian König <[email protected]> | 2021-09-15 10:18:27 +0200 |
commit | 282abb5a1f381d0ec10b20893961563be174a1c3 (patch) | |
tree | 0b31fa1652601fdc53a67f46b82929ae309801c5 /scripts/gdb/linux/modules.py | |
parent | 78afff2acea1c184525dbccafad9aa061f73478a (diff) |
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 <[email protected]>
Signed-off-by: Huang Rui <[email protected]>
Cc: Christian König <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions