summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tests/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2022-12-15 19:34:49 +0300
committerMaíra Canal <mairacanal@riseup.net>2022-12-24 01:08:26 +0300
commit523dfa96add75e60cfe6bf5a1c8f713635cd6b73 (patch)
tree19b4699245fda1d77689b914b6593e17851cba0e /drivers/gpu/drm/tests/Makefile
parentb02897e56b4e1fa6445be695ce5d605bb098435c (diff)
downloadlinux-523dfa96add75e60cfe6bf5a1c8f713635cd6b73.tar.xz
drm/tests: reduce drm_mm_test stack usage
The check_reserve_boundaries function uses a lot of kernel stack, and it gets inlined by clang, which makes __drm_test_mm_reserve use even more of it, to the point of hitting the warning limit: drivers/gpu/drm/tests/drm_mm_test.c:344:12: error: stack frame size (1048) exceeds limit (1024) in '__drm_test_mm_reserve' [-Werror,-Wframe-larger-than] When building with gcc, this does not happen, but the structleak plugin can similarly increase the stack usage and needs to be disabled, as we do for all other kunit users. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Maíra Canal <mairacanal@riseup.net> Link: https://patchwork.freedesktop.org/patch/msgid/20221215163511.266214-1-arnd@kernel.org
Diffstat (limited to 'drivers/gpu/drm/tests/Makefile')
-rw-r--r--drivers/gpu/drm/tests/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tests/Makefile b/drivers/gpu/drm/tests/Makefile
index b29ef1085cad..f896ef85c2f2 100644
--- a/drivers/gpu/drm/tests/Makefile
+++ b/drivers/gpu/drm/tests/Makefile
@@ -12,3 +12,5 @@ obj-$(CONFIG_DRM_KUNIT_TEST) += \
drm_mm_test.o \
drm_plane_helper_test.o \
drm_rect_test.o
+
+CFLAGS_drm_mm_test.o := $(DISABLE_STRUCTLEAK_PLUGIN)