Blame test/integration/rhel-7.6/new-function.patch

Packit Service da4517
Index: kernel-rhel7/drivers/tty/n_tty.c
Packit Service da4517
===================================================================
Packit Service da4517
--- kernel-rhel7.orig/drivers/tty/n_tty.c
Packit Service da4517
+++ kernel-rhel7/drivers/tty/n_tty.c
Packit Service da4517
@@ -2128,7 +2128,7 @@ do_it_again:
Packit Service da4517
  *		  lock themselves)
Packit Service da4517
  */
Packit Service da4517
 
Packit Service da4517
-static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
Packit Service da4517
+static ssize_t noinline kpatch_n_tty_write(struct tty_struct *tty, struct file *file,
Packit Service da4517
 			   const unsigned char *buf, size_t nr)
Packit Service da4517
 {
Packit Service da4517
 	const unsigned char *b = buf;
Packit Service da4517
@@ -2210,6 +2210,12 @@ break_out:
Packit Service da4517
 	return (b - buf) ? b - buf : retval;
Packit Service da4517
 }
Packit Service da4517
 
Packit Service da4517
+static ssize_t __attribute__((optimize("-fno-optimize-sibling-calls"))) n_tty_write(struct tty_struct *tty, struct file *file,
Packit Service da4517
+			   const unsigned char *buf, size_t nr)
Packit Service da4517
+{
Packit Service da4517
+	return kpatch_n_tty_write(tty, file, buf, nr);
Packit Service da4517
+}
Packit Service da4517
+
Packit Service da4517
 /**
Packit Service da4517
  *	n_tty_poll		-	poll method for N_TTY
Packit Service da4517
  *	@tty: terminal device