summaryrefslogtreecommitdiffstats
path: root/include/drm/i915_drm.h
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2016-08-09 19:35:10 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-08-09 22:18:26 +0200
commitaac440ff22a27155ae08f4d0fd6ac2971bfc5f3d (patch)
tree2412c3a85fc95d93555b12949d0e82c9e92bc16e /include/drm/i915_drm.h
parentdrm/i915: Correct typo for __i915_gem_active_get_rcu in a comment (diff)
downloadlinux-aac440ff22a27155ae08f4d0fd6ac2971bfc5f3d.tar.xz
linux-aac440ff22a27155ae08f4d0fd6ac2971bfc5f3d.zip
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
Diffstat (limited to 'include/drm/i915_drm.h')
-rw-r--r--include/drm/i915_drm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index b1755f8db36b..4e1b274e1164 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -93,6 +93,6 @@ extern bool i915_gpu_turbo_disable(void);
#define I845_TSEG_SIZE_1M (3 << 1)
#define INTEL_BSM 0x5c
-#define INTEL_BSM_MASK (0xFFFF << 20)
+#define INTEL_BSM_MASK (-(1u << 20))
#endif /* _I915_DRM_H_ */