https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97374

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
This was prompted by warnings like the one below in a build of the kernel:

drivers/gpu/drm/i915/intel_pm.c:3062:9: warning: ‘intel_print_wm_latency’
reading 16 bytes from a region of size 10 [-Wstringop-overread]
 3062 |         intel_print_wm_latency(dev_priv, "Primary",
dev_priv->wm.pri_latency);
      |        
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/intel_pm.c:3062:9: note: referencing argument 3 of type
‘const u16 *’ {aka ‘const short unsigned int *’}
drivers/gpu/drm/i915/intel_pm.c:2999:13: note: in a call to function
‘intel_print_wm_latency’
 2999 | static void intel_print_wm_latency(struct drm_i915_private *dev_priv,
      |             ^~~~~~~~~~~~~~~~~~~~~~

Reply via email to