OpenCloudOS-Kernel/drivers/gpu/drm/selftests
Arnd Bergmann c0898fca3f
drm/selftests: reduce stack usage
Putting a large drm_connector object on the stack can lead to warnings
in some configuration, such as:

drivers/gpu/drm/selftests/test-drm_cmdline_parser.c:18:12: error: stack frame size of 1040 bytes in function 'drm_cmdline_test_res' [-Werror,-Wframe-larger-than=]
static int drm_cmdline_test_res(void *ignored)

Since the object is never modified, just declare it as 'static const'
and allow this to be passed down.

Fixes: b7ced38916 ("drm/selftests: Add command line parser selftests")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190628121712.1928142-1-arnd@arndb.de
2019-07-01 09:50:58 +02:00
..
Makefile drm/selftests: Add command line parser selftests 2019-06-19 12:17:52 +02:00
drm_cmdline_selftests.h drm/selftests: Add command line parser selftests 2019-06-19 12:17:52 +02:00
drm_mm_selftests.h drm/mm: Add a search-by-address variant to only inspect a single hole 2018-05-24 15:04:30 +01:00
drm_modeset_selftests.h drm/selftest: Add drm damage helper selftest 2018-12-05 10:00:36 +01:00
drm_selftest.c
drm_selftest.h
test-drm_cmdline_parser.c drm/selftests: reduce stack usage 2019-07-01 09:50:58 +02:00
test-drm_damage_helper.c drm/selftest: fix spelling mistake "dimention" -> "dimension" 2018-12-11 15:19:42 +01:00
test-drm_format.c drm/selftests: Add tests for drm_format_info* helpers 2018-11-02 09:57:58 +00:00
test-drm_framebuffer.c drm/selftests: Fix build warning -Wframe-larger-than 2018-11-02 14:25:32 +01:00
test-drm_mm.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
test-drm_modeset_common.c drm/selftest: Refactor test-drm_plane_helper 2018-10-22 10:30:50 +01:00
test-drm_modeset_common.h drm/selftest: Add drm damage helper selftest 2018-12-05 10:00:36 +01:00
test-drm_plane_helper.c drm/selftest: Refactor test-drm_plane_helper 2018-10-22 10:30:50 +01:00