Commit de05133
drm/i915: Widen return value for reservation_object_wait_timeout_rcu to long.
This fixes a spurious warning from an integer overflow on 64-bits systems.
The function may return MAX_SCHEDULE_TIMEOUT which gets truncated to -1.
Explicitly handling this by casting to lret fixes it.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reported-and-tested-by: Joseph Yasi <joe.yasi@gmail.com>
Tested-by: Andreas Reis <andreas.reis@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: drm-intel-fixes@lists.freedesktop.org
Fixes: 3c28ff2 ("i915: wait for fence in prepare_plane_fb")
Link: http://patchwork.freedesktop.org/patch/msgid/5666EEC8.2000403@linux.intel.com
(cherry picked from commit bcf8be2)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>1 parent 2dc2f76 commit de05133
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13765 | 13765 | | |
13766 | 13766 | | |
13767 | 13767 | | |
13768 | | - | |
13769 | | - | |
13770 | | - | |
13771 | | - | |
13772 | | - | |
| 13768 | + | |
| 13769 | + | |
| 13770 | + | |
| 13771 | + | |
| 13772 | + | |
| 13773 | + | |
| 13774 | + | |
13773 | 13775 | | |
13774 | | - | |
| 13776 | + | |
13775 | 13777 | | |
13776 | 13778 | | |
13777 | 13779 | | |
| |||
0 commit comments