Re: [bug report] kernel.h: hide __is_constexpr() from sparse

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

 



On Tue, Nov 27, 2018 at 01:09:00PM +0300, Dan Carpenter wrote:
> Hello Johannes Berg,
> 
> The patch a06ae2017b9e: "kernel.h: hide __is_constexpr() from sparse"
> from Nov 17, 2018, leads to a bunch of Smatch warnings.  We stubbed out
> __is_constexpr() to return always true because Sparse was complaining
> but Smatch needs the __is_constexpr() to work or it can't parse
> min()/max() macros.
> 

Actually, the simple solution is to just make __is_constexpr() always
return 0.  That should work for everyone?

regards,
dan carpenter




[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