[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1311760070-21532-3-git-send-email-sven@narfation.org>
Date: Wed, 27 Jul 2011 11:47:42 +0200
From: Sven Eckelmann <sven@...fation.org>
To: linux-arch@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Sven Eckelmann <sven@...fation.org>,
Akinobu Mita <akinobu.mita@...il.com>
Subject: [PATCHv4 03/11] fault_inject: Remove private define of atomic_dec_not_zero
atomic_dec_not_zero is defined through <linux/atomic.h> for all
architectures and fault_inject doesn't need an extra define which may
collide with the global one.
Signed-off-by: Sven Eckelmann <sven@...fation.org>
Cc: Akinobu Mita <akinobu.mita@...il.com>
---
lib/fault-inject.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/lib/fault-inject.c b/lib/fault-inject.c
index 2577b12..8ce98c6 100644
--- a/lib/fault-inject.c
+++ b/lib/fault-inject.c
@@ -45,8 +45,6 @@ static void fail_dump(struct fault_attr *attr)
dump_stack();
}
-#define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
-
static bool fail_task(struct fault_attr *attr, struct task_struct *task)
{
return !in_interrupt() && task->make_it_fail;
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists