From 63ed879aab3bb3544c5ec0409d166e3e5035c1f0 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 13 Sep 2018 03:38:15 +0000 Subject: [PATCH] avoid sequence-point warning with gcc 4.9 ok kettenis@ --- sys/dev/pci/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index 638f105adc7..017d4ea943c 100644 --- a/sys/dev/pci/drm/i915/i915_gem.c +++ b/sys/dev/pci/drm/i915/i915_gem.c @@ -2777,7 +2777,7 @@ i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj) TAILQ_FOREACH(page, &plist, pageq) { st->nents++; sg_dma_address(sg) = VM_PAGE_TO_PHYS(page); - sg_dma_len(sg) = sg->length = PAGE_SIZE; + sg_dma_len(sg) = PAGE_SIZE; sg++; i++; } -- 2.20.1