alistair23-linux/drivers/gpu/drm/nouveau
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
..
dispnv04
include drm/nouveau/clk/gm20b: add basic driver 2016-03-14 10:13:56 +10:00
nvif
nvkm nouveau: fix nv40_perfctr_next() cleanup regression 2016-03-16 15:08:43 +10:00
Kbuild
Kconfig
nouveau_abi16.c drm/nouveau/fifo/gk104: make use of topology info during gpfifo construction 2016-03-14 10:13:42 +10:00
nouveau_abi16.h
nouveau_acpi.c
nouveau_acpi.h
nouveau_backlight.c
nouveau_bios.c
nouveau_bios.h
nouveau_bo.c drm/nouveau/bo: consider DMA buffers on x86 only 2016-03-14 10:13:32 +10:00
nouveau_bo.h
nouveau_chan.c drm/nouveau/fifo/gk110: expose KeplerChannelGpfifoB 2016-03-14 10:13:48 +10:00
nouveau_chan.h
nouveau_connector.c
nouveau_connector.h
nouveau_crtc.h
nouveau_debugfs.c
nouveau_debugfs.h
nouveau_display.c drm/nouveau: s/gm204/gm200/ in a number of places 2016-03-14 10:13:12 +10:00
nouveau_display.h
nouveau_dma.c
nouveau_dma.h
nouveau_dp.c
nouveau_drm.c drm/nouveau/fifo/gk110: expose KeplerChannelGpfifoB 2016-03-14 10:13:48 +10:00
nouveau_drm.h
nouveau_encoder.h
nouveau_fbcon.c
nouveau_fbcon.h
nouveau_fence.c
nouveau_fence.h
nouveau_gem.c
nouveau_gem.h
nouveau_hwmon.c drm/nouveau/hwmon: fix crash on non-PCI platforms 2016-03-14 10:13:33 +10:00
nouveau_hwmon.h
nouveau_ioc32.c
nouveau_ioctl.h
nouveau_nvif.c
nouveau_platform.c
nouveau_platform.h
nouveau_prime.c
nouveau_reg.h
nouveau_sgdma.c
nouveau_ttm.c
nouveau_ttm.h
nouveau_usif.c
nouveau_usif.h
nouveau_vga.c
nouveau_vga.h
nv04_fbcon.c
nv04_fence.c
nv10_fence.c
nv10_fence.h
nv17_fence.c
nv50_display.c drm/nouveau: s/gm204/gm200/ in a number of places 2016-03-14 10:13:12 +10:00
nv50_display.h
nv50_fbcon.c
nv50_fence.c
nv84_fence.c
nvc0_fbcon.c
nvc0_fence.c