Simplify unipi_tty to be compatible with linux 5.10
authorMiroslav Ondra <ondra@faster.cz>
Tue, 3 Aug 2021 09:35:18 +0000 (11:35 +0200)
committerMiroslav Ondra <ondra@faster.cz>
Tue, 3 Aug 2021 09:35:18 +0000 (11:35 +0200)
modules/unipi/src/unipi_tty.c

index 32f2917b53b54367a8f7b5bbb9651cc16c777724..b86816b9f4437cfd58504d0a326a44df6dd5d8c0 100644 (file)
 
 #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)
 
 
 #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 */