2021-11-19 09:12:12 +00:00
|
|
|
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c
|
|
|
|
index 21e404e7cb68..3a282338d6d9 100644
|
|
|
|
--- a/fs/nfsd/export.c
|
|
|
|
+++ b/fs/nfsd/export.c
|
|
|
|
@@ -1234,6 +1234,9 @@ static void exp_flags(struct seq_file *m, int flag, int fsid,
|
2021-02-01 16:08:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+extern char *kpatch_string(void);
|
|
|
|
+
|
2021-11-19 09:12:12 +00:00
|
|
|
+__attribute__((optimize("-fno-optimize-sibling-calls")))
|
2021-02-01 16:08:42 +00:00
|
|
|
static int e_show(struct seq_file *m, void *p)
|
|
|
|
{
|
|
|
|
struct cache_head *cp = p;
|
2021-11-19 09:12:12 +00:00
|
|
|
@@ -1243,6 +1246,7 @@ static int e_show(struct seq_file *m, void *p)
|
2021-02-01 16:08:42 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2021-11-19 09:12:12 +00:00
|
|
|
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
|
|
|
|
index daca50d6bb12..a657a0e073f8 100644
|
|
|
|
--- a/net/netlink/af_netlink.c
|
|
|
|
+++ b/net/netlink/af_netlink.c
|
|
|
|
@@ -2898,4 +2898,9 @@ static int __init netlink_proto_init(void)
|
2021-02-01 16:08:42 +00:00
|
|
|
panic("netlink_init: Cannot allocate nl_table\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
+char *kpatch_string(void)
|
|
|
|
+{
|
|
|
|
+ return "# kpatch\n";
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
core_initcall(netlink_proto_init);
|