diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-06-28 14:16:45 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2019-07-01 09:50:58 +0200 |
commit | c0898fca3fce00f824e7f5d48e1edd0900378a03 (patch) | |
tree | 873610fa15976582d6a927c283d889a212401f1e /tools | |
parent | dd2b5959785c75c23ab2295a4095700e47dabff3 (diff) | |
download | linux-c0898fca3fce00f824e7f5d48e1edd0900378a03.tar.bz2 |
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: b7ced38916a9 ("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
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions