[Intel-gfx] include/drm/i915_drm.h:96: possible bad bitmask ?
David Binderman
linuxdev.baldrick at gmail.com
Mon Aug 8 09:31:32 UTC 2016
Hello there,
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=]
Source code is
#define INTEL_BSM_MASK (0xFFFF << 20)
Maybe something like
#define INTEL_BSM_MASK (0xFFFFUL<< 20)
might be better.
Regards
David Binderman
More information about the Intel-gfx
mailing list