summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_priolist_types.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-05-27 16:05:09 +0200
committerRodrigo Vivi <rodrigo.vivi@intel.com>2020-05-28 06:06:24 -0700
commit822d6bd1890dbeaedf661d30d2c5280e127ef4b3 (patch)
treec424db93b963ef5d5dc1403a1d18dd4b6ab87f33 /drivers/gpu/drm/i915/i915_priolist_types.h
parent03d11bd6aa450db7f1fa7f0c96552e05e73915de (diff)
drm/i915: work around false-positive maybe-uninitialized warning
gcc-9 gets confused by the code flow in check_dirty_whitelist: drivers/gpu/drm/i915/gt/selftest_workarounds.c: In function 'check_dirty_whitelist': drivers/gpu/drm/i915/gt/selftest_workarounds.c:492:17: error: 'rsvd' may be used uninitialized in this function [-Werror=maybe-uninitialized] I could not figure out a good way to do this in a way that gcc understands better, so initialize the variable to zero, as last resort. Fixes: aee20aaed887 ("drm/i915: Implement read-only support in whitelist selftest") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200527140526.1458215-2-arnd@arndb.de (cherry picked from commit cc649a9eafc1ef5c40db023084cb94422d08aa84) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_priolist_types.h')
0 files changed, 0 insertions, 0 deletions