drm: avoid "possible bad bitmask?" warning
authorDave Gordon <david.s.gordon@intel.com>
Tue, 9 Aug 2016 17:35:10 +0000 (18:35 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Aug 2016 20:18:26 +0000 (22:18 +0200)
commitaac440ff22a27155ae08f4d0fd6ac2971bfc5f3d
tree2412c3a85fc95d93555b12949d0e82c9e92bc16e
parent1426f7157efe12bb40455e84dd7083917d21860f
drm: avoid "possible bad bitmask?" warning

Recent versions of gcc say this:

include/drm/i915_drm.h:96:34: warning: result of β€˜65535 << 20’
requires 37 bits to represent, but β€˜int’ only has 32 bits
[-Wshift-overflow=]

Reported-by: David Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470764110-23855-1-git-send-email-david.s.gordon@intel.com
include/drm/i915_drm.h