]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Mar 2017 17:39:50 +0000 (17:39 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 17 May 2018 14:05:10 +0000 (22:05 +0800)
commit579e2f6d999991d2d2dd39c7185cba0a97137cee
tree90a9675322a7ead8554c1b9e0c426731fb885165
parent1c6ccad8a4b110bac3f9ff6db954ab5a74c2e861
drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof

Compute the offset of the end of the crc32 field using offsetofend()
rather than open-coding.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/firmware.c