From 5de5ecbb6786ef0d7d2e4b0a16608ffc32be5359 Mon Sep 17 00:00:00 2001 From: Miroslav Ondra Date: Tue, 3 Aug 2021 11:35:18 +0200 Subject: [PATCH] Simplify unipi_tty to be compatible with linux 5.10 --- modules/unipi/src/unipi_tty.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/unipi/src/unipi_tty.c b/modules/unipi/src/unipi_tty.c index 32f2917..b86816b 100644 --- a/modules/unipi/src/unipi_tty.c +++ b/modules/unipi/src/unipi_tty.c @@ -59,6 +59,13 @@ #include "unipi_tty.h" +// #undef UNIPI_TTY_TRACE +#if NEURONSPI_DETAILED_DEBUG > 0 +# define unipi_tty_trace(f, args...) trace_printk(f, ##args) +#else +# define unipi_tty_trace(f, args...) +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0) @@ -74,12 +81,6 @@ #define TTY_THRESHOLD_UNTHROTTLE 128 -// #undef UNIPI_TTY_TRACE -#if NEURONSPI_DETAILED_DEBUG > 0 -# define unipi_tty_trace(f, args...) trace_printk(f, ##args) -#else -# define unipi_tty_trace(f, args...) -#endif struct unipi_tty_data { /* producer-published */ -- 2.34.1