units: move checks to check_ file and hide under the --spammy option
commitb22b59dc1a7c784e5ecb55bb0664f24f6c072b97
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 10 May 2023 09:20:54 +0000 (10 12:20 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Wed, 10 May 2023 09:20:54 +0000 (10 12:20 +0300)
treedbbbd826026b4c20cc9d96ea9ec1f48384d9ec58
parentca83afcc081f9b0f9eb68f3ace9c57012897144b
units: move checks to check_ file and hide under the --spammy option

The checks are supposed to be in a check_*.c file instead of a smatch_*.c
file.  These checks are low quality and I almost deleted them but then
instead I just decided to hide them under the --spammy option for people
to play around with if they want.

Looking at the results one thing which I see is if you have an array of
bytes then probably the size should always be in byte units instead of
array_size units...  Something to do.  But for now it's silenced so there
is less urgency.

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