drivers/base: build kunit tests without structleak plugin
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2021 12:45:27 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 13:35:18 +0000 (14:35 +0100)
commit38009c766725a9877ea8866fc813a5460011817f
tree73c850a8359dff9e89c0d0d580f79aee8dde5ff4
parent6091b08eda85a4da6d548d6de4b650bffae0d61c
drivers/base: build kunit tests without structleak plugin

The structleak plugin causes the stack frame size to grow immensely:

drivers/base/test/property-entry-test.c: In function 'pe_test_reference':
drivers/base/test/property-entry-test.c:481:1: error: the frame size of 2640 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]
  481 | }
      | ^
drivers/base/test/property-entry-test.c: In function 'pe_test_uints':
drivers/base/test/property-entry-test.c:99:1: error: the frame size of 2592 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

Turn it off in this file.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210125124533.101339-3-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/test/Makefile