kpatch/test/integration/rhel-7.5/gcc-static-local-var-4.patch

21 lines
517 B
Diff

diff -Nupr src.orig/fs/aio.c src/fs/aio.c
--- src.orig/fs/aio.c 2017-09-22 15:27:21.702056192 -0400
+++ src/fs/aio.c 2017-09-22 15:27:33.299104215 -0400
@@ -219,9 +219,16 @@ static int __init aio_setup(void)
}
__initcall(aio_setup);
+void kpatch_aio_foo(void)
+{
+ if (!jiffies)
+ printk("kpatch aio foo\n");
+}
+
static void put_aio_ring_file(struct kioctx *ctx)
{
struct file *aio_ring_file = ctx->aio_ring_file;
+ kpatch_aio_foo();
if (aio_ring_file) {
truncate_setsize(aio_ring_file->f_inode, 0);