diff options
author | 2016-03-14 15:24:10 +0100 | |
---|---|---|
committer | 2016-03-16 15:08:43 +1000 | |
commit | 86d65b7e7a0c927d07d18605c276d0f142438ead (patch) | |
tree | 98ad2cfc3c38fce0d9f9fa57fdac0429fe683bc2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'topic/drm-misc-2016-03-14' of git://anongit.freedesktop.org/drm-intel into drm-next (diff) | |
download | linux-dev-86d65b7e7a0c927d07d18605c276d0f142438ead.tar.xz linux-dev-86d65b7e7a0c927d07d18605c276d0f142438ead.zip |
nouveau: fix nv40_perfctr_next() cleanup regression
gcc-6 warns about code in the nouveau driver that is obviously silly:
drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c: In function 'nv40_perfctr_next':
drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c:62:19: warning: self-comparison always evaluats to false [-Wtautological-compare]
if (pm->sequence != pm->sequence) {
The behavior was accidentally introduced in a patch described as "This is
purely preparation for upcoming commits, there should be no code changes here.".
As far as I can tell, that was true for the rest of that patch except for
this one function, which has been changed to a NOP.
This patch restores the original behavior.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 8c1aeaa13954 ("drm/nouveau/pm: cosmetic changes")
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions