mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +00:00
dacdfcfd22
I accidentally added two tests which both create a non-static kpatch_foo() function, which breaks the combined integration test kernel build.
21 lines
404 B
Diff
21 lines
404 B
Diff
Index: src/kernel/reboot.c
|
|
===================================================================
|
|
--- src.orig/kernel/reboot.c
|
|
+++ src/kernel/reboot.c
|
|
@@ -285,8 +285,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);
|
|
}
|
|
|