2020-01-03 10:09:09 +01:00
|
|
|
diff -Naur drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/cocci/suse_pr_warning__no_present.cocci drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/cocci/suse_pr_warning__no_present.cocci
|
|
|
|
--- drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/cocci/suse_pr_warning__no_present.cocci 1970-01-01 08:00:00.000000000 +0800
|
2020-01-06 08:05:08 +01:00
|
|
|
+++ drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/cocci/suse_pr_warning__no_present.cocci 2020-01-06 14:52:30.740564872 +0800
|
|
|
|
@@ -0,0 +1,11 @@
|
2020-01-03 10:09:09 +01:00
|
|
|
+@outdate_pr_waring@
|
|
|
|
+identifier func;
|
2020-01-06 08:05:08 +01:00
|
|
|
+expression list EL;
|
2020-01-03 10:09:09 +01:00
|
|
|
+@@
|
|
|
|
+func(...) {
|
|
|
|
+<...
|
2020-01-06 08:05:08 +01:00
|
|
|
+- pr_warning(EL);
|
|
|
|
++ pr_warn(EL);
|
2020-01-03 10:09:09 +01:00
|
|
|
+...>
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
diff -Naur drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/gen_patch_names.c drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/gen_patch_names.c
|
2020-01-06 08:05:08 +01:00
|
|
|
--- drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/gen_patch_names.c 2020-01-06 14:50:00.827751099 +0800
|
|
|
|
+++ drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/gen_patch_names.c 2020-01-06 14:50:41.135969904 +0800
|
2020-01-03 10:09:09 +01:00
|
|
|
@@ -291,6 +291,9 @@
|
|
|
|
patch(1, "allow_kernel_signal", true, false,
|
|
|
|
COMPAT_HAVE_ALLOW_KERNEL_SIGNAL, "present");
|
|
|
|
|
|
|
|
+ patch(1, "suse_pr_warning", true, false,
|
|
|
|
+ COMPAT_WITH_PR_WARNING, "present");
|
|
|
|
+
|
|
|
|
/* #define BLKDEV_ISSUE_ZEROOUT_EXPORTED */
|
|
|
|
/* #define BLKDEV_ZERO_NOUNMAP */
|
|
|
|
|
|
|
|
diff -Naur drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/tests/with_pr_warning.c drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/tests/with_pr_warning.c
|
|
|
|
--- drbd-9.0.20~1+git.7dce3c8b.orig/drbd/drbd-kernel-compat/tests/with_pr_warning.c 1970-01-01 08:00:00.000000000 +0800
|
2020-01-06 08:05:08 +01:00
|
|
|
+++ drbd-9.0.20~1+git.7dce3c8b/drbd/drbd-kernel-compat/tests/with_pr_warning.c 2020-01-06 14:50:41.135969904 +0800
|
2020-01-03 10:09:09 +01:00
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+#include <linux/printk.h>
|
|
|
|
+
|
|
|
|
+/* pr_waring is dropped since 61ff72f401680 */
|
|
|
|
+
|
|
|
|
+void foo(void)
|
|
|
|
+{
|
|
|
|
+ pr_warning("pr_warning replaced by pr_warn since 61ff72f401680!");
|
|
|
|
+}
|