]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Convert cmpxchg(bool) back to a two step operation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Mar 2017 14:08:32 +0000 (15:08 +0100)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 30 Mar 2017 14:15:49 +0000 (17:15 +0300)
commit8cefa93a283f854383dce180889af4b2f3c7947d
treee5b99267b26c8b303833f223ca0c0397c919b30a
parent985c3ad762ea8a88bab598141c0662e25785738e
drm: Convert cmpxchg(bool) back to a two step operation

ARM v6 (at least) only allows cmpxchg on 32bit variables which doesn't
always include the bool type.

drivers/built-in.o: In function `vblank_disable_and_save':
imx-ocotp.c:(.text+0xb45e8): undefined reference to `__bad_cmpxchg'
Makefile:986: recipe for target 'vmlinux' failed

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reported-by: Leonard Crestez <leonard.crestez@nxp.com>
Fixes: 66cf74144736 ("drm: Mark up accesses of vblank->enabled outside of its spinlock")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170330140832.32377-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_irq.c