Blame test/integration/ubuntu-16.04/new-function.patch

Packit Service ac8aad
diff -Nupr src.orig/drivers/tty/n_tty.c src/drivers/tty/n_tty.c
Packit Service ac8aad
--- src.orig/drivers/tty/n_tty.c	2016-12-15 19:55:54.840000000 +0000
Packit Service ac8aad
+++ src/drivers/tty/n_tty.c	2016-12-15 19:57:43.856000000 +0000
Packit Service ac8aad
@@ -2328,7 +2328,7 @@ static ssize_t n_tty_read(struct tty_str
Packit Service ac8aad
  *		  lock themselves)
Packit Service ac8aad
  */
Packit Service ac8aad
 
Packit Service ac8aad
-static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
Packit Service ac8aad
+static ssize_t noinline kpatch_n_tty_write(struct tty_struct *tty, struct file *file,
Packit Service ac8aad
 			   const unsigned char *buf, size_t nr)
Packit Service ac8aad
 {
Packit Service ac8aad
 	const unsigned char *b = buf;
Packit Service ac8aad
@@ -2415,6 +2415,12 @@ break_out:
Packit Service ac8aad
 	return (b - buf) ? b - buf : retval;
Packit Service ac8aad
 }
Packit Service ac8aad
 
Packit Service ac8aad
+static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
Packit Service ac8aad
+			   const unsigned char *buf, size_t nr)
Packit Service ac8aad
+{
Packit Service ac8aad
+	return kpatch_n_tty_write(tty, file, buf, nr);
Packit Service ac8aad
+}
Packit Service ac8aad
+
Packit Service ac8aad
 /**
Packit Service ac8aad
  *	n_tty_poll		-	poll method for N_TTY
Packit Service ac8aad
  *	@tty: terminal device