diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-10-14 07:51:56 +0200 |
|---|---|---|
| committer | Gabriele Monaco <gmonaco@redhat.com> | 2025-11-11 13:18:55 +0100 |
| commit | 4f739ed19d222de33b19ca639a34523fbbec20d0 (patch) | |
| tree | 80d2652b3c2dec558efc3ca018fc0a23a9ab527f /kernel/trace/rv/reactor_panic.c | |
| parent | 0c0cd931a037638ec49ae57c6100fcbb6a729bae (diff) | |
rv: Pass va_list to reactors
The only thing the reactors can do with the passed in varargs is to
convert it into a va_list. Do that in a central helper instead.
It simplifies the reactors, removes some hairy macro-generated code
and introduces a convenient hook point to modify reactor behavior.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20251014-rv-lockdep-v1-1-0b9e51919ea8@linutronix.de
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'kernel/trace/rv/reactor_panic.c')
| -rw-r--r-- | kernel/trace/rv/reactor_panic.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/trace/rv/reactor_panic.c b/kernel/trace/rv/reactor_panic.c index 74c6bcc2c749..76537b8a4343 100644 --- a/kernel/trace/rv/reactor_panic.c +++ b/kernel/trace/rv/reactor_panic.c @@ -13,13 +13,9 @@ #include <linux/init.h> #include <linux/rv.h> -__printf(1, 2) static void rv_panic_reaction(const char *msg, ...) +__printf(1, 0) static void rv_panic_reaction(const char *msg, va_list args) { - va_list args; - - va_start(args, msg); vpanic(msg, args); - va_end(args); } static struct rv_reactor rv_panic = { |