summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2018-12-04 13:22:15 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2018-12-04 14:43:02 +0100
commitdd8de0efa64e50bc06c2882a0028d98ad870e752 (patch)
treef9306d2f7965825358423a0fad4a3cb688bda710 /tests/kms_rotation_crc.c
parent6a965853560b2f8070d639b61506506842f87ff5 (diff)
tests/kms_rotation_crc: static before const
My gcc is unhappy otherwise: [191/829] Compiling C object 'tests/te...otation_crc@exe/kms_rotation_crc.c.o'. ../tests/kms_rotation_crc.c: In function ‘test_multi_plane_rotation’: ../tests/kms_rotation_crc.c:497:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static struct { ^~~~~ ../tests/kms_rotation_crc.c:524:2: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration] const static uint32_t formatlist[] = {DRM_FORMAT_RGB565, ^~~~~ Fixes commit 14c1b132c8f829637c55fb071a9a2e5ce00e7ed8 Author: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Date: Fri Nov 30 15:34:36 2018 +0200 tests/kms_rotation_crc: Add multi plane tests v2: Trim extra space while at it (Petri). Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index 369936f9..c67f608e 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -494,7 +494,7 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
struct p_struct *oldplanes;
drmModeModeInfo *mode;
- const static struct {
+ static const struct {
igt_rotation_t rotation;
float_t width;
float_t height;
@@ -521,8 +521,8 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
* TODO:
* Built support for NV12 here.
*/
- const static uint32_t formatlist[] = {DRM_FORMAT_RGB565,
- DRM_FORMAT_XRGB8888};
+ static const uint32_t formatlist[] = {DRM_FORMAT_RGB565,
+ DRM_FORMAT_XRGB8888};
for_each_valid_output_on_pipe(display, pipe, output) {
int i, j, k, l;