Blame test/integration/centos-7/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	2017-09-22 15:27:21.084053633 -0400
Packit Service ac8aad
+++ src/drivers/tty/n_tty.c	2017-09-22 15:27:45.888156346 -0400
Packit Service ac8aad
@@ -2016,7 +2016,7 @@ do_it_again:
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
@@ -2098,6 +2098,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