linux/drivers/gpu/drm/nouveau/nvkm/engine
Arnd Bergmann 86d65b7e7a 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: 8c1aeaa139 ("drm/nouveau/pm: cosmetic changes")
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2016-03-16 15:08:43 +10:00
..
bsp drm/nouveau/xtensa: convert to new-style nvkm_engine 2015-08-28 12:40:45 +10:00
ce drm/nouveau/ce/gm107: expose MaxwellDmaCopyA 2016-03-14 10:13:49 +10:00
cipher drm/nouveau/core: remove the remainder of the previous style 2015-08-28 12:40:47 +10:00
device drm/nouveau/clk/gm20b: add basic driver 2016-03-14 10:13:56 +10:00
disp drm/nouveau: s/gm204/gm200/ in a number of places 2016-03-14 10:13:12 +10:00
dma drm/nouveau/nvif: modify nvif_unvers/nvif_unpack macros to be more obvious 2016-01-11 11:17:40 +10:00
fifo drm/nouveau/fifo/gm107: KeplerChannelGpfifoB, and 2048 channels 2016-03-14 10:13:48 +10:00
gr drm/nouveau/gr/fuc: Store $r0 in interrupt handler 2016-03-14 10:13:37 +10:00
mpeg drm/nouveau/core: remove the remainder of the previous style 2015-08-28 12:40:47 +10:00
msenc drm/nouveau/core: add msenc plumbing 2016-03-14 10:13:43 +10:00
mspdec drm/nouveau/falcon: convert to new-style nvkm_engine 2015-08-28 12:40:45 +10:00
msppp drm/nouveau/falcon: convert to new-style nvkm_engine 2015-08-28 12:40:45 +10:00
msvld drm/nouveau/falcon: convert to new-style nvkm_engine 2015-08-28 12:40:45 +10:00
nvdec drm/nouveau/core: add nvdec plumbing 2016-03-14 10:13:44 +10:00
nvenc drm/nouveau/core: add nvenc plumbing 2016-03-14 10:13:44 +10:00
pm nouveau: fix nv40_perfctr_next() cleanup regression 2016-03-16 15:08:43 +10:00
sec drm/nouveau/fifo: convert to new-style nvkm_engine 2015-08-28 12:40:46 +10:00
sw drm/nouveau/nvif: modify nvif_unvers/nvif_unpack macros to be more obvious 2016-01-11 11:17:40 +10:00
vic drm/nouveau/core: add vic plumbing 2016-03-14 10:13:45 +10:00
vp drm/nouveau/xtensa: convert to new-style nvkm_engine 2015-08-28 12:40:45 +10:00
falcon.c drm/nouveau/device: remove pci/platform_device from common struct 2015-08-28 12:40:49 +10:00
Kbuild drm/nouveau/core: add vic plumbing 2016-03-14 10:13:45 +10:00
xtensa.c drm/nouveau/device: remove pci/platform_device from common struct 2015-08-28 12:40:49 +10:00