From b4231817a13b8ed8371d32ffdb2b6c0eff475dc2 Mon Sep 17 00:00:00 2001 From: "C.Prados" <c.prados@gsi.de> Date: Mon, 18 Jul 2016 16:57:26 +0200 Subject: [PATCH] wb-serial: change error msg to warning for kernel > 4.10 --- pcie-wb/wishbone-serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcie-wb/wishbone-serial.c b/pcie-wb/wishbone-serial.c index bf1d159..6670e57 100644 --- a/pcie-wb/wishbone-serial.c +++ b/pcie-wb/wishbone-serial.c @@ -36,7 +36,7 @@ #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) && LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) #define API 7 /* v3.7 v3.8 v3.9 */ #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -#error Enable and use the driver in your native kernel, not this one +#warning Enable and use the driver in your native kernel, not this one #define API 8 /* v3.10+ */ #else #error Unsupported kernel version @@ -146,7 +146,7 @@ static int wishbone_serial_open(struct tty_struct *tty, struct usb_serial_port * retval); return retval; } - + #if API <= 1 wishbone_serial_set_termios(port, NULL); #endif -- GitLab