]> git.baikalelectronics.ru Git - kernel.git/commit
device property: build kunit tests without structleak plugin
authorBrendan Higgins <brendanhiggins@google.com>
Wed, 29 Sep 2021 21:27:11 +0000 (14:27 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 6 Oct 2021 23:53:42 +0000 (17:53 -0600)
commite33f1fc2ba8592bfb6225d5921fe1e5bc218c33d
treea94c50ee07c5c6721f1e369a45e67c0eddc11157
parentedace6dd1b34d4bbd618caffb2b09b1c232199d3
device property: build kunit tests without structleak plugin

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

../drivers/base/test/property-entry-test.c:492:1: warning: the frame size of 2832 bytes is larger than 2048 bytes [-Wframe-larger-than=]
../drivers/base/test/property-entry-test.c:322:1: warning: the frame size of 2080 bytes is larger than 2048 bytes [-Wframe-larger-than=]
../drivers/base/test/property-entry-test.c:250:1: warning: the frame size of 4976 bytes is larger than 2048 bytes [-Wframe-larger-than=]
../drivers/base/test/property-entry-test.c:115:1: warning: the frame size of 3280 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>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
drivers/base/test/Makefile