summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_uncore.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2015-12-08 15:52:56 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2016-01-11 08:30:02 +0100
commitbcf8be279c79df6a8a17d9c3e1f9bc926444a87c (patch)
treee2cab7f6c4d6fcedfc29676950510e428e1f443d /drivers/gpu/drm/i915/intel_uncore.c
parentdb1a6aa2afa50803fbd801631bb9756eeff96dbe (diff)
downloadtalos-op-linux-bcf8be279c79df6a8a17d9c3e1f9bc926444a87c.tar.gz
talos-op-linux-bcf8be279c79df6a8a17d9c3e1f9bc926444a87c.zip
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: 3c28ff22f6e20c ("i915: wait for fence in prepare_plane_fb") Link: http://patchwork.freedesktop.org/patch/msgid/5666EEC8.2000403@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_uncore.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud