From: Miroslav Ondra Date: Tue, 3 Aug 2021 09:35:18 +0000 (+0200) Subject: Simplify unipi_tty to be compatible with linux 5.10 X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=5de5ecbb6786ef0d7d2e4b0a16608ffc32be5359;p=graphit%2Funipi-kernel.git Simplify unipi_tty to be compatible with linux 5.10 --- 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 */