Re: problem with bit field sizes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/2/19 9:23 AM, Luc Van Oostenryck wrote:
> On Wed, Oct 02, 2019 at 08:18:02AM -0700, Randy Dunlap wrote:
>> With sparse 0.6.1-rc1 and Linux kernel v5.4-rc1, sparse is complaining about
>> bit field sizes in 2 header files: include/linux/sched.h and
>> kernel/sched/sched.h.  They both use a calculation + define macro for the
>> bit field sizes.
> 
> This is corrected in upstream: v0.6.1-rc1-37-gd466a0281

Thanks.  I got that and confirm your statement.
However, the other one that I reported is still around (case statement
constant, not bit field size):


Somewhat similar problem here (using macro for case statement):

../drivers/gpu/drm/i915/display/intel_display.c:1202:22: error: Expected constant expression in case statement
../drivers/gpu/drm/i915/display/intel_display.c:1205:22: error: Expected constant expression in case statement
../drivers/gpu/drm/i915/display/intel_display.c:1208:22: error: Expected constant expression in case statement
../drivers/gpu/drm/i915/display/intel_display.c:1211:22: error: Expected constant expression in case statement


-- 
~Randy



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux