Files
linux/drivers
Greg Kroah-Hartman c81c4d453e drm/i915: fix compiler warning in drivers/gpu/drm/i915/intel_uncore.c
When building with gcc-7, the following warning happens:

drivers/gpu/drm/i915/intel_uncore.c: In function ‘hsw_unclaimed_reg_detect’:
drivers/gpu/drm/i915/intel_uncore.c:638:36: warning: decrement of a boolean expression [-Wbool-operation]
   i915.mmio_debug = mmio_debug_once--;
                                    ^~

As it's really not wise to -- on a boolean value.

Commit 7571494004 ("drm/i915: Do one shot unclaimed mmio detection
less frequently") which showed up in 4.6-rc1 does solve this issue, by
rewriting the mmio detection logic, but that isn't really good to
backport to 4.4-stable, so just fix up the obvious logic here to do the
right thing.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Paulo Zanoni <przanoni@gmail.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-02 07:06:53 +02:00
..
2015-10-12 19:56:27 -07:00
2017-08-06 19:19:47 -07:00
2017-09-02 07:06:50 +02:00
2017-08-06 19:19:41 -07:00
2016-09-24 10:07:35 +02:00
2017-08-30 10:19:22 +02:00
2017-09-02 07:06:51 +02:00
2017-04-21 09:30:07 +02:00
2017-08-24 17:02:36 -07:00