lkml.org 
[lkml]   [2021]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.11 35/52] drivers/base: build kunit tests without structleak plugin
    Date
    From: Arnd Bergmann <arnd@arndb.de>

    [ Upstream commit 38009c766725a9877ea8866fc813a5460011817f ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/base/test/Makefile | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/base/test/Makefile b/drivers/base/test/Makefile
    index 3ca56367c84b..2f15fae8625f 100644
    --- a/drivers/base/test/Makefile
    +++ b/drivers/base/test/Makefile
    @@ -2,3 +2,4 @@
    obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o

    obj-$(CONFIG_KUNIT_DRIVER_PE_TEST) += property-entry-test.o
    +CFLAGS_REMOVE_property-entry-test.o += -fplugin-arg-structleak_plugin-byref -fplugin-arg-structleak_plugin-byref-all
    --
    2.30.1
    \
     
     \ /
      Last update: 2021-03-02 17:10    [W:5.577 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site