Blame test/integration/rhel-8.0/new-function.patch
|
Packit Service |
da4517 |
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
|
|
Packit Service |
da4517 |
index 3ad4602..f3cda7e 100644
|
|
Packit Service |
da4517 |
--- a/drivers/tty/n_tty.c
|
|
Packit Service |
da4517 |
+++ b/drivers/tty/n_tty.c
|
|
Packit Service |
da4517 |
@@ -2296,7 +2296,7 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file,
|
|
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 |
@@ -2383,6 +2383,12 @@ static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
|
|
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
|