Re: [Intel-gfx] [PATCH] drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof

2018-05-17 Thread Zhenyu Wang
On 2018.05.16 17:38:30 +0100, Chris Wilson wrote: > Quoting Mika Kuoppala (2017-03-16 09:37:44) > > Chris Wilson writes: > > > > > Compute the offset of the end of the crc32 field using offsetofend() > > > rather than open-coding. > > > > > > Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH] drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof

2018-05-16 Thread Chris Wilson
Quoting Mika Kuoppala (2017-03-16 09:37:44) > Chris Wilson writes: > > > Compute the offset of the end of the crc32 field using offsetofend() > > rather than open-coding. > > > > Signed-off-by: Chris Wilson > > Cc: Zhenyu Wang

Re: [Intel-gfx] [PATCH] drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof

2017-03-16 Thread Mika Kuoppala
Chris Wilson writes: > Compute the offset of the end of the crc32 field using offsetofend() > rather than open-coding. > > Signed-off-by: Chris Wilson > Cc: Zhenyu Wang > Cc: Zhi Wang

[Intel-gfx] [PATCH] drm/i915/gvt: Use offsetofend() rather than offsetof + sizeof

2017-03-15 Thread Chris Wilson
Compute the offset of the end of the crc32 field using offsetofend() rather than open-coding. Signed-off-by: Chris Wilson Cc: Zhenyu Wang Cc: Zhi Wang --- drivers/gpu/drm/i915/gvt/firmware.c | 2 +- 1 file changed, 1