drm/selftests: Fix build warning -Wframe-larger-than
authorAlexandru-Cosmin Gheorghe <Alexandru-Cosmin.Gheorghe@arm.com>
Fri, 2 Nov 2018 13:01:25 +0000 (13:01 +0000)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 2 Nov 2018 13:25:32 +0000 (14:25 +0100)
commit9341c668c8c0993452559f278345b2a490ba3ee9
tree346e6a2e41afa9f4da67971c9a115be6e6e32c34
parent6ff3d9ffdcbbe24e8185b254d92d6db44ad55506
drm/selftests: Fix build warning -Wframe-larger-than

It seems for some random configuration drm_device is bigger than 2048
bytes.
The fix is to make the mock objects static variables.

Bug reported by 0-DAY Kernel test infrastructure here:
https://lists.01.org/pipermail/kbuild-all/2018-November/054431.html

Fixes: 6ff3d9ffdcbb ("drm/selftests: Add tests for drm_internal_framebuffer_create")
Signed-off-by: Alexandru-Cosmin Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181102130103.7753-1-alexandru-cosmin.gheorghe@arm.com
drivers/gpu/drm/selftests/test-drm_framebuffer.c