[PATCH 3/9] kthread: remove unused macros
Christoph Hellwig
hch at lst.de
Tue May 16 21:48:06 AEST 2017
KTHREAD_DELAYED_WORK_INIT and DEFINE_KTHREAD_DELAYED_WORK are unused
and are using a timer helper that's about to go away.
Signed-off-by: Christoph Hellwig <hch at lst.de>
---
include/linux/kthread.h | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/include/linux/kthread.h b/include/linux/kthread.h
index 4fec8b775895..acb6edb4b4b4 100644
--- a/include/linux/kthread.h
+++ b/include/linux/kthread.h
@@ -114,23 +114,12 @@ struct kthread_delayed_work {
.func = (fn), \
}
-#define KTHREAD_DELAYED_WORK_INIT(dwork, fn) { \
- .work = KTHREAD_WORK_INIT((dwork).work, (fn)), \
- .timer = __TIMER_INITIALIZER(kthread_delayed_work_timer_fn, \
- 0, (unsigned long)&(dwork), \
- TIMER_IRQSAFE), \
- }
-
#define DEFINE_KTHREAD_WORKER(worker) \
struct kthread_worker worker = KTHREAD_WORKER_INIT(worker)
#define DEFINE_KTHREAD_WORK(work, fn) \
struct kthread_work work = KTHREAD_WORK_INIT(work, fn)
-#define DEFINE_KTHREAD_DELAYED_WORK(dwork, fn) \
- struct kthread_delayed_work dwork = \
- KTHREAD_DELAYED_WORK_INIT(dwork, fn)
-
/*
* kthread_worker.lock needs its own lockdep class key when defined on
* stack with lockdep enabled. Use the following macros in such cases.
--
2.11.0
More information about the Linuxppc-dev
mailing list