Re: [Intel-gfx] [PATCH v2] drm/i915: Distribute switch variables for initialization

2020-02-23 Thread Jani Nikula
On Fri, 21 Feb 2020, Ville Syrjälä wrote: > On Thu, Feb 20, 2020 at 04:05:17PM -0800, Kees Cook wrote: >> Variables declared in a switch statement before any case statements >> cannot be automatically initialized with compiler instrumentation (as >> they are not part of any execution flow). With

Re: [Intel-gfx] [PATCH v2] drm/i915: Distribute switch variables for initialization

2020-02-21 Thread Ville Syrjälä
On Thu, Feb 20, 2020 at 04:05:17PM -0800, Kees Cook wrote: > Variables declared in a switch statement before any case statements > cannot be automatically initialized with compiler instrumentation (as > they are not part of any execution flow). With GCC's proposed automatic > stack variable

[Intel-gfx] [PATCH v2] drm/i915: Distribute switch variables for initialization

2020-02-20 Thread Kees Cook
Variables declared in a switch statement before any case statements cannot be automatically initialized with compiler instrumentation (as they are not part of any execution flow). With GCC's proposed automatic stack variable initialization feature, this triggers a warning (and they don't get