[PATCH 00/14] use atomic_dec_not_zero()

Fabian Frederick fabf at skynet.be
Mon Jan 30 18:39:20 UTC 2017


complementary definition to atomic_inc_not_zero() featured in
lib/fault-inject.c. This small patchset moves it to
include/linux/atomic.h using it instead of
atomic_add_unless(value, -1, 0)

s390 patches were not compile-tested.

Fabian Frederick (14):
  locking/atomic: import atomic_dec_not_zero()
  drm/exynos: use atomic_dec_not_zero()
  drm/omap: use atomic_dec_not_zero()
  m5mols: use atomic_dec_not_zero()
  omap3isp: use atomic_dec_not_zero()
  s390/qeth: use atomic_dec_not_zero()
  PM / RUNTIME: use atomic_dec_not_zero()
  ipmi: use atomic_dec_not_zero()
  kdb: use atomic_dec_not_zero()
  PM / Hibernate: use atomic_dec_not_zero()
  PM: use atomic_dec_not_zero()
  s390/topology: use atomic_dec_not_zero()
  ext4: use atomic_dec_not_zero()
  xfs: use atomic_dec_not_zero()

 arch/s390/kernel/topology.c               | 2 +-
 drivers/base/power/runtime.c              | 4 ++--
 drivers/char/ipmi/ipmi_msghandler.c       | 2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimd.c  | 2 +-
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c  | 2 +-
 drivers/media/i2c/m5mols/m5mols_core.c    | 2 +-
 drivers/media/platform/omap3isp/ispstat.c | 2 +-
 drivers/s390/net/qeth_core_main.c         | 2 +-
 fs/ext4/ext4.h                            | 2 +-
 fs/xfs/xfs_buf.c                          | 2 +-
 include/linux/atomic.h                    | 2 ++
 kernel/debug/kdb/kdb_main.c               | 2 +-
 kernel/power/hibernate.c                  | 4 ++--
 kernel/power/user.c                       | 2 +-
 lib/fault-inject.c                        | 2 --
 15 files changed, 17 insertions(+), 17 deletions(-)

-- 
2.9.3



More information about the dri-devel mailing list