Blame test/integration/rhel-7.5/new-function.patch
|
Packit Service |
da4517 |
diff -Nupr src.orig/drivers/tty/n_tty.c src/drivers/tty/n_tty.c
|
|
Packit Service |
da4517 |
--- src.orig/drivers/tty/n_tty.c 2017-09-22 15:27:21.084053633 -0400
|
|
Packit Service |
da4517 |
+++ src/drivers/tty/n_tty.c 2017-09-22 15:27:45.888156346 -0400
|
|
Packit Service |
da4517 |
@@ -2016,7 +2016,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 |
@@ -2098,6 +2098,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
|