OpenCloudOS-Kernel/drivers/gpu/drm/tests
Maíra Canal cf1e6a9031 drm/tests: Split up test cases in igt_check_drm_format_min_pitch
The igt_check_drm_format_min_pitch() function had a lot of
KUNIT_EXPECT_* calls, all of which ended up allocating and initializing
various test assertion structures on the stack.

This behavior was producing -Wframe-larger-than warnings on PowerPC, i386,
and MIPS architectures, such as:

drivers/gpu/drm/tests/drm_format_test.c: In function 'igt_check_drm_format_min_pitch':
drivers/gpu/drm/tests/drm_format_test.c:271:1: error: the frame size of
3712 bytes is larger than 2048 bytes

So, the igt_check_drm_format_min_pitch() test case was split into three
smaller functions: one testing single plane formats, one testing
multi-planar formats, and the other testing tiled formats.

Fixes: 0421bb0baa ("drm: selftest: convert drm_format selftest to KUnit")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220729124726.748221-1-mairacanal@riseup.net
2022-07-29 12:37:03 -01:00
..
.kunitconfig
Makefile drm: selftest: convert drm_mm selftest to KUnit 2022-07-11 14:00:05 +02:00
drm_buddy_test.c drm: selftest: convert drm_buddy selftest to KUnit 2022-07-11 14:00:03 +02:00
drm_cmdline_parser_test.c drm: selftest: convert drm_cmdline_parser selftest to KUnit 2022-07-11 13:59:52 +02:00
drm_damage_helper_test.c
drm_dp_mst_helper_test.c drm: selftest: convert drm_dp_mst_helper selftest to KUnit 2022-07-11 14:00:00 +02:00
drm_format_helper_test.c drm/format-helper: Add KUnit tests for drm_fb_xrgb8888_to_rgb565() 2022-07-28 18:36:45 +02:00
drm_format_test.c drm/tests: Split up test cases in igt_check_drm_format_min_pitch 2022-07-29 12:37:03 -01:00
drm_framebuffer_test.c drm: selftest: convert drm_framebuffer selftest to KUnit 2022-07-11 14:00:01 +02:00
drm_mm_test.c drm: selftest: convert drm_mm selftest to KUnit 2022-07-11 14:00:05 +02:00
drm_plane_helper_test.c drm/atomic-helper: Remove _HELPER_ infix from DRM_PLANE_HELPER_NO_SCALING 2022-07-26 18:42:00 +02:00
drm_rect_test.c drm: selftest: convert drm_rect selftest to KUnit 2022-07-11 13:59:55 +02:00