[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190108191314.GA25250@flashbox>
Date: Tue, 8 Jan 2019 12:13:14 -0700
From: Nathan Chancellor <natechancellor@...il.com>
To: Manasi Navare <manasi.d.navare@...el.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>
Cc: Lyude Paul <lyude@...hat.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Clang warning in drivers/gpu/drm/i915/i915_debugfs.c
Hi all,
Commit e845f099f1c6 ("drm/i915/dsc: Add Per connector debugfs node for
DSC support/enable") causes a Clang warning:
drivers/gpu/drm/i915/i915_debugfs.c:4961:17: warning: address of array 'intel_dp->dsc_dpcd' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (intel_dp->dsc_dpcd)
~~ ~~~~~~~~~~^~~~~~~~
1 warning generated.
Did you mean to dereference it or should that print statement just
always show? I normally would send a patch myself but since I'm not
familiar with this code, I'd rather not shoot in the dark :) especially
since it's for a trivial logging statement.
Thanks,
Nathan
Powered by blists - more mailing lists