kpatch/test/integration/fedora-25/module-call-external.patch

34 lines
1000 B
Diff
Raw Normal View History

diff -Nupr src.orig/fs/nfsd/export.c src/fs/nfsd/export.c
--- src.orig/fs/nfsd/export.c 2016-11-30 19:39:49.284737234 +0000
+++ src/fs/nfsd/export.c 2016-11-30 19:40:50.089737234 +0000
@@ -1193,6 +1193,8 @@ static void exp_flags(struct seq_file *m
}
}
+extern char *kpatch_string(void);
+
static int e_show(struct seq_file *m, void *p)
{
struct cache_head *cp = p;
@@ -1202,6 +1204,7 @@ static int e_show(struct seq_file *m, vo
if (p == SEQ_START_TOKEN) {
seq_puts(m, "# Version 1.1\n");
seq_puts(m, "# Path Client(Flags) # IPs\n");
+ seq_puts(m, kpatch_string());
return 0;
}
diff -Nupr src.orig/net/netlink/af_netlink.c src/net/netlink/af_netlink.c
--- src.orig/net/netlink/af_netlink.c 2016-11-30 19:39:45.299737234 +0000
+++ src/net/netlink/af_netlink.c 2016-11-30 19:40:50.090737234 +0000
@@ -2619,4 +2619,9 @@ panic:
panic("netlink_init: Cannot allocate nl_table\n");
}
+char *kpatch_string(void)
+{
+ return "# kpatch\n";
+}
+
core_initcall(netlink_proto_init);