diff options
author | Marius Vlad <marius.c.vlad@intel.com> | 2016-03-07 12:59:55 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-03-07 12:27:05 +0100 |
commit | afa38a4d454c4d7058e56fd84d5b9fe42dad1ee2 (patch) | |
tree | 7b9272ea0f038ac789fee21e9568f62646c38f82 /tests/kms_setmode.c | |
parent | b33a78b9b1bb5e0f718dfaf44497b07bd468372f (diff) |
tests/kms_setmode: Fix compilation warnings.
kms_setmode.c:384:30: warning: declaration of ‘drm_fd’ shadows a global
declaration [-Wshadow]
kms_setmode.c:45:12: note: shadowed declaration is here static int drm_fd;
kms_setmode.c:391:38: warning: passing argument 8 of ‘drmModeSetCrtc’
discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers] ids, crtc->connector_count, &crtc->mode);
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_setmode.c')
-rw-r--r-- | tests/kms_setmode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index 6afe00c1..e7a5beef 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -381,23 +381,23 @@ static uint32_t *get_connector_ids(struct crtc_config *crtc) return ids; } -static int test_stealing(int drm_fd, const struct crtc_config *crtc, uint32_t *ids) +static int test_stealing(int fd, struct crtc_config *crtc, uint32_t *ids) { int i, ret = 0; if (!crtc->connector_count) - return drmModeSetCrtc(drm_fd, crtc->crtc_id, + return drmModeSetCrtc(fd, crtc->crtc_id, crtc->fb_info.fb_id, 0, 0, ids, crtc->connector_count, &crtc->mode); for (i = 0; i < crtc->connector_count; ++i) { - ret = drmModeSetCrtc(drm_fd, crtc->crtc_id, + ret = drmModeSetCrtc(fd, crtc->crtc_id, crtc->fb_info.fb_id, 0, 0, &ids[i], 1, &crtc->mode); igt_assert_eq(ret, 0); - ret = drmModeSetCrtc(drm_fd, crtc->crtc_id, + ret = drmModeSetCrtc(fd, crtc->crtc_id, crtc->fb_info.fb_id, 0, 0, ids, crtc->connector_count, &crtc->mode); |