kpatch/test/integration/rhel-7.6/gcc-static-local-var-3.patch
Artem Savkov 76ebcd2fa4 test/integration: add patches rebased for recent rhel minor releases
This commit contains centos-7 patches rebased and adjusted to work with
recent rhel minors so that integration tests actually pass on those.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
2019-06-14 10:53:57 +02:00

21 lines
422 B
Diff

Index: kernel-rhel7/kernel/sys.c
===================================================================
--- kernel-rhel7.orig/kernel/sys.c
+++ kernel-rhel7/kernel/sys.c
@@ -559,8 +559,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);
}