All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/backtracetest: use new API for backtrace tasklet
@ 2021-01-23 19:01 Emil Renner Berthing
  0 siblings, 0 replies; only message in thread
From: Emil Renner Berthing @ 2021-01-23 19:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: Emil Renner Berthing, Thomas Gleixner, Kees Cook,
	Greg Kroah-Hartman

This converts the backtrace_tasklet to use the new API in
commit 12cc923f1ccc ("tasklet: Introduce new initialization API")

The new API changes the argument passed to the callback function, but
fortunately the argument isn't used so it is straight forward to use
DECLARE_TASKLET() rather than DECLARE_TASKLET_OLD().

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
---
 kernel/backtracetest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/backtracetest.c b/kernel/backtracetest.c
index 370217dd7e39..70a3da716f01 100644
--- a/kernel/backtracetest.c
+++ b/kernel/backtracetest.c
@@ -23,13 +23,13 @@ static void backtrace_test_normal(void)
 
 static DECLARE_COMPLETION(backtrace_work);
 
-static void backtrace_test_irq_callback(unsigned long data)
+static void backtrace_test_irq_callback(struct tasklet_struct *unused)
 {
 	dump_stack();
 	complete(&backtrace_work);
 }
 
-static DECLARE_TASKLET_OLD(backtrace_tasklet, &backtrace_test_irq_callback);
+static DECLARE_TASKLET(backtrace_tasklet, backtrace_test_irq_callback);
 
 static void backtrace_test_irq(void)
 {
-- 
2.30.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-23 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-23 19:01 [PATCH] kernel/backtracetest: use new API for backtrace tasklet Emil Renner Berthing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.