summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2018-03-22 18:35:50 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2018-03-22 18:35:53 +0900
commit0b536b82157643df72f2c48135ec7a8a29f8c3c9 (patch)
tree0b3139e06981dc06840d18b54add064e1d550072
parente5664bb744971fef8ca7a9d7357136f13e2608d4 (diff)
downloadlibdrm-0b536b82157643df72f2c48135ec7a8a29f8c3c9.tar.gz
libdrm-0b536b82157643df72f2c48135ec7a8a29f8c3c9.tar.bz2
libdrm-0b536b82157643df72f2c48135ec7a8a29f8c3c9.zip
ipptest fix type-punned pointer build warning
Fix type-punned pointer like other drm event. Ref: ecc2a097294d ("xf86drm: Fix type-punned pointer build warning") Ref: c9ef5c4a1c69 ("exynos: fix type-punned pointer build warning") Change-Id: Ifafd0b1376ea07c36105230cc1f547eff8d08e41 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--tests/ipptest/fimc.c2
-rw-r--r--tests/rottest/rotator.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c
index a16b7b17..f43c4738 100644
--- a/tests/ipptest/fimc.c
+++ b/tests/ipptest/fimc.c
@@ -626,7 +626,7 @@ int fimc_event_handler(struct drm_exynos_ipp_queue_buf *src_qbuf,
i = 0;
while (i < len) {
- e = (struct drm_event *) &buffer[i];
+ e = (struct drm_event *)(buffer + i);
switch (e->type) {
case DRM_EXYNOS_IPP_EVENT:
ipp_event = (struct drm_exynos_ipp_event *) e;
diff --git a/tests/rottest/rotator.c b/tests/rottest/rotator.c
index d0bcbdca..bbb1452c 100644
--- a/tests/rottest/rotator.c
+++ b/tests/rottest/rotator.c
@@ -191,7 +191,7 @@ static int rotator_event_handler(int fd, int idx, int prop_id,
i = 0;
while (i < len) {
- e = (struct drm_event *)&buffer[i];
+ e = (struct drm_event *)(buffer + i);
switch (e->type) {
case DRM_EXYNOS_IPP_EVENT:
ipp_event = (struct drm_exynos_ipp_event *)e;