thunderbolt: build kunit tests without structleak plugin
authorBrendan Higgins <brendanhiggins@google.com>
Wed, 29 Sep 2021 21:27:12 +0000 (14:27 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 6 Oct 2021 23:53:49 +0000 (17:53 -0600)
commit33d4951e021bb67ebd6bdb01f3d437c0f45b3c0c
tree2527b6fa8c043991a821e882f442e3099eb5b143
parent6a1e2d93d55b000962b82b9a080006446150b022
thunderbolt: build kunit tests without structleak plugin

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

drivers/thunderbolt/test.c:1529:1: error: the frame size of 1176 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

Turn it off in this file.

Linus already split up tests in this file, so this change *should* be
redundant now.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
drivers/thunderbolt/Makefile