Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Brendan Higgins and committed by
Shuah Khan
2326f3cd 554afc3b

+1
+1
drivers/iio/test/Makefile
··· 5 5 6 6 # Keep in alphabetical order 7 7 obj-$(CONFIG_IIO_TEST_FORMAT) += iio-test-format.o 8 + CFLAGS_iio-test-format.o += $(DISABLE_STRUCTLEAK_PLUGIN)