Messages in this thread | | | From | David Binderman <> | Date | Mon, 8 Aug 2016 10:31:32 +0100 | Subject | include/drm/i915_drm.h:96: possible bad bitmask ? |
| |
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
| |