[PATCH] drm/i915/pmu: Work around compiler warnings on some kernel configs

2018-03-15 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Arnd Bergman reports: """ The conditional spinlock confuses gcc into thinking the 'flags' value might contain uninitialized data: drivers/gpu/drm/i915/i915_pmu.c: In function '__i915_pmu_event_read': arch/x86/include/asm/paravirt_types.h:573:3: error: 'flags' may be used un

Re: [PATCH] drm/i915/pmu: Work around compiler warnings on some kernel configs

2018-03-14 Thread Chris Wilson
Quoting Tvrtko Ursulin (2018-03-14 08:05:35) > From: Tvrtko Ursulin > > Arnd Bergman reports: > """ > The conditional spinlock confuses gcc into thinking the 'flags' value > might contain uninitialized data: > > drivers/gpu/drm/i915/i915_pmu.c: In function '__i915_pmu_event_read': > arch/x86/inc