aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/selftests/test-drm_cmdline_parser.c
AgeCommit message (Collapse)AuthorFilesLines
2019-08-30drm/selftests: modes: Add more unit tests for the cmdline parserMaxime Ripard1-0/+130
Let's add some unit tests for the recent bugs we just fixed. Signed-off-by: Maxime Ripard <[email protected]> Tested-by: Thomas Graichen <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-07-01drm/selftests: reduce stack usageArnd Bergmann1-88/+48
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: b7ced38916a9 ("drm/selftests: Add command line parser selftests") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2019-06-19drm/selftests: Add command line parser selftestsMaxime Ripard1-0/+918
The command line parser is pretty tough to get right and very error prone, so let's add a selftest to try to catch any regression. Reviewed-by: Noralf Trønnes <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/735348d3a475ce0bcc88b46e093ab149023bb202.1560783090.git-series.maxime.ripard@bootlin.com