iio/test-format: build kunit tests without structleak plugin
authorBrendan Higgins <brendanhiggins@google.com>
Wed, 29 Sep 2021 21:27:10 +0000 (14:27 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 6 Oct 2021 23:53:36 +0000 (17:53 -0600)
commit2326f3cdba1d105b68cc1295e78f17ae8faa5a76
treeafe362ed1ced2ec0004535829115ad510a1cba6f
parent554afc3b9797511e3245864e32aebeb6abbab1e3
iio/test-format: build kunit tests without structleak plugin

The structleak plugin causes the stack frame size to grow immensely when
used with KUnit:

../drivers/iio/test/iio-test-format.c: In function ‘iio_test_iio_format_value_fixedpoint’:
../drivers/iio/test/iio-test-format.c:98:1: warning: the frame size of 2336 bytes is larger than 2048 bytes [-Wframe-larger-than=]

Turn it off in this file.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
drivers/iio/test/Makefile