1
0
mirror of https://github.com/dynup/kpatch synced 2025-04-01 22:48:08 +00:00
kpatch/test/integration/rhel-8.3/gcc-static-local-var-3.patch
Yannick Cote 27766f00d8
test/integration: add rhel-8.3 rebased patches
Signed-off-by: Yannick Cote <ycote@redhat.com>
2020-12-10 12:39:15 -05:00

20 lines
437 B
Diff

diff -Nupr src.orig/kernel/reboot.c src/kernel/reboot.c
--- src.orig/kernel/reboot.c 2020-03-17 01:12:55.495921700 -0400
+++ src/kernel/reboot.c 2020-03-17 01:13:19.875778203 -0400
@@ -393,8 +393,15 @@ SYSCALL_DEFINE4(reboot, int, magic1, int
return ret;
}
+void kpatch_bar(void)
+{
+ if (!jiffies)
+ printk("kpatch_foo\n");
+}
+
static void deferred_cad(struct work_struct *dummy)
{
+ kpatch_bar();
kernel_restart(NULL);
}