mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 05:43:47 +07:00
c0898fca3f
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:
|
||
---|---|---|
.. | ||
drm_cmdline_selftests.h | ||
drm_mm_selftests.h | ||
drm_modeset_selftests.h | ||
drm_selftest.c | ||
drm_selftest.h | ||
Makefile | ||
test-drm_cmdline_parser.c | ||
test-drm_damage_helper.c | ||
test-drm_format.c | ||
test-drm_framebuffer.c | ||
test-drm_mm.c | ||
test-drm_modeset_common.c | ||
test-drm_modeset_common.h | ||
test-drm_plane_helper.c |