math: handle this (<too complicated math> & 0xff)
commit28a8ffbd911012fd53171b11be7b9cc3aa514ea1
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Aug 2017 20:34:00 +0000 (10 23:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Aug 2017 20:34:00 +0000 (10 23:34 +0300)
treeb991a8ace823ad9a8d4a2770a3524e8146971e7f
parentf9983b110a0f70253fabd52a817802d84c40fd8c
math: handle this (<too complicated math> & 0xff)

The recurse_cnt is used to give up on trying to parse too complicated
math.  There are one or two macros in the kernel that are pages and pages
of math and create out of memory issues.  But on the other hand, it's
really puzzling to see code like:

foo = MACRO & 0xff;

and Smatch not be able to parse it.  And you might have to look really
closely at MACRO to see that actually it's a half a page of math when you
expand it completely.

Anyway, let's treat this as a special case because it's quite important.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_math.c