lkml.org 
[lkml]   [2016]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectinclude/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

\
 
 \ /
  Last update: 2016-08-08 12:01    [W:0.055 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site