Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aac440ff authored by Dave Gordon's avatar Dave Gordon Committed by Daniel Vetter
Browse files

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: default avatarDavid Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: default avatarDave Gordon <david.s.gordon@intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470764110-23855-1-git-send-email-david.s.gordon@intel.com
parent 1426f715
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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_ */