diff options
author | Chris Severance | 2019-03-10 20:49:25 -0400 |
---|---|---|
committer | Chris Severance | 2019-03-10 20:49:25 -0400 |
commit | e662affcd219f45e561fca7048a05148858a1938 (patch) | |
tree | ca9d8c68f1ac81f6c0c89d18048caddc3265a362 /0000-kernel-4.18-proc_fops-to-proc_show.patch | |
parent | 8a18dd275b71ade2836ebd7ccff497113a6f8f68 (diff) | |
download | aur-e662affcd219f45e561fca7048a05148858a1938.tar.gz |
autu: Update to 1.42-2
Diffstat (limited to '0000-kernel-4.18-proc_fops-to-proc_show.patch')
-rw-r--r-- | 0000-kernel-4.18-proc_fops-to-proc_show.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/0000-kernel-4.18-proc_fops-to-proc_show.patch b/0000-kernel-4.18-proc_fops-to-proc_show.patch new file mode 100644 index 000000000000..3179dc230bb3 --- /dev/null +++ b/0000-kernel-4.18-proc_fops-to-proc_show.patch @@ -0,0 +1,44 @@ +--- driver/serial_core.c.orig 2018-06-11 11:13:38.000000000 -0400 ++++ driver/serial_core.c 2019-03-10 20:43:11.777035590 -0400 +@@ -1885,10 +1885,11 @@ static int uart_proc_show(struct seq_fil + for (i = 0; i < drv->nr; i++) + uart_line_info(m, drv, i); + return 0; + } + ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)) + static int uart_proc_open(struct inode *inode, struct file *file) + { + #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)) + return single_open(file, uart_proc_show, PDE_DATA(inode)); + #else +@@ -1902,10 +1903,11 @@ static const struct file_operations uart + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + }; + #endif ++#endif + + #if defined(CONFIG_SERIAL_CORE_CONSOLE) || defined(CONFIG_CONSOLE_POLL) + /* + * cti_uart_console_write - write a console message to a serial port + * @port: the port to write the message +@@ -2443,13 +2445,17 @@ static const struct tty_operations uart_ + .stop = uart_stop, + .start = uart_start, + .hangup = uart_hangup, + .break_ctl = uart_break_ctl, + .wait_until_sent= uart_wait_until_sent, ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,18,0)) + #ifdef CONFIG_PROC_FS + .proc_fops = &uart_proc_fops, + #endif ++#else ++ .proc_show = &uart_proc_show, ++#endif + .tiocmget = uart_tiocmget, + .tiocmset = uart_tiocmset, + .get_icount = uart_get_icount, + #ifdef CONFIG_CONSOLE_POLL + .poll_init = uart_poll_init, |