aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Higgins <brendanhiggins@google.com>2021-09-29 14:27:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-27 09:59:50 +0200
commit2c793a67d71b9febb8a2fd83b50ccc18aca69b16 (patch)
treeec0f8a628dbe7b7cdcfc4cbf8daa46ee3fa80d33
parent930f561aae28ac9fd08a36d3e32107b4fc0138a4 (diff)
downloadlinux-yocto-2c793a67d71b9febb8a2fd83b50ccc18aca69b16.tar.gz
linux-yocto-2c793a67d71b9febb8a2fd83b50ccc18aca69b16.tar.bz2
linux-yocto-2c793a67d71b9febb8a2fd83b50ccc18aca69b16.zip
iio/test-format: build kunit tests without structleak plugin
[ Upstream commit 2326f3cdba1d105b68cc1295e78f17ae8faa5a76 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/iio/test/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/test/Makefile b/drivers/iio/test/Makefile
index f1099b495301..467519a2027e 100644
--- a/drivers/iio/test/Makefile
+++ b/drivers/iio/test/Makefile
@@ -5,3 +5,4 @@
# Keep in alphabetical order
obj-$(CONFIG_IIO_TEST_FORMAT) += iio-test-format.o
+CFLAGS_iio-test-format.o += $(DISABLE_STRUCTLEAK_PLUGIN)