kvmalloc_NOFS: silence "does not make sense for no sleep code" false positives
commitdf508d3a208dd381dd46e7dab1a32e91dc11b609
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 29 Feb 2024 13:57:41 +0000 (29 16:57 +0300)
committerDan Carpenter <dan.carpenter@linaro.org>
Thu, 29 Feb 2024 13:57:41 +0000 (29 16:57 +0300)
tree3787a9edb8a502a6da822e5ac6ac14c2d8137cde
parent7276be755778321c2cc31fc381f448e3d3d2c90a
kvmalloc_NOFS: silence "does not make sense for no sleep code" false positives

The GFP flags were recently re-worked and Smatch is too stupid to figure
out the current value of the __GFP_DIRECT_RECLAIM flag.

Disable this check if the GFP_DIRECT_RECLAIM() function fails.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
check_kvmalloc_NOFS.c