On Fri, Jun 28, 2019 at 02:16:45PM +0200, Arnd Bergmann wrote: > 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@xxxxxxxx> Applied, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel