units: store what sort of units a variable is in
commit427d51b5398a94f1a153ea9ab72114a607365f91
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 19 Apr 2023 06:09:40 +0000 (19 09:09 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Wed, 19 Apr 2023 06:09:40 +0000 (19 09:09 +0300)
tree759adb949cb16a8e59521226d26262ad9e66af30
parentdf248781d0789960a21135f033bac5bfc5146742
units: store what sort of units a variable is in

Some variables are in terms of bytes, or the number of elements or
miliseconds or whatever.  Store this information so we can print a warning
when we mix units like add msec to jiffies or allocate the number of
elements instead of the number of bytes etc.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Makefile
check_list.h
smatch.h
smatch_units.c [new file with mode: 0644]