diff options
author | Jan Moskyto Matejka <mq@suse.cz> | 2014-04-28 15:03:23 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-05 09:09:19 +0200 |
commit | 4b6eab597318784d838410da2d496707502f4898 (patch) | |
tree | 0c526fc592b7d71852b9db7bd4361b0cc0a6bd56 /drivers/gpu/drm/i915/i915_cmd_parser.c | |
parent | 8a6543ba4719ff940b22ce9f9830a9c3fd9e1b60 (diff) | |
download | op-kernel-dev-4b6eab597318784d838410da2d496707502f4898.zip op-kernel-dev-4b6eab597318784d838410da2d496707502f4898.tar.gz |
Revert "drm/i915: fix build warning on 32-bit (v2)"
This reverts commit 60f2b4af1258c05e6b037af866be81abc24438f7.
The same warning has been fixed in e5081a538a565284fec5f30a937d98e460d5e780 and
these two commits got merged in 74e99a84de2d0980320612db8015ba606af42114 which
caused another warning. Simply, the reverted commit casted the pointer
difference to unsigned long and the other commit changed the output type from
long to ptrdiff_t.
The other commit fixes the original warning the better way so I'm reverting
this commit now.
Signed-off-by: Jan Moskyto Matejka <mq@suse.cz>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_cmd_parser.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_cmd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_cmd_parser.c b/drivers/gpu/drm/i915/i915_cmd_parser.c index 6ea9413..69d34e4 100644 --- a/drivers/gpu/drm/i915/i915_cmd_parser.c +++ b/drivers/gpu/drm/i915/i915_cmd_parser.c @@ -919,7 +919,7 @@ int i915_parse_cmds(struct intel_ring_buffer *ring, DRM_DEBUG_DRIVER("CMD: Command length exceeds batch length: 0x%08X length=%u batchlen=%td\n", *cmd, length, - (unsigned long)(batch_end - cmd)); + batch_end - cmd); ret = -EINVAL; break; } |