From 8a631cf5601ffaf484f008ba1d868c9b83cf5ea4be39b8a08b471840d7cabe2e Mon Sep 17 00:00:00 2001 From: nick wang Date: Thu, 5 Nov 2020 04:19:35 +0000 Subject: [PATCH] Accepting request 846101 from home:wanghaisu:branches:network:ha-clustering:Factory Update fix-err-of-wrong-return-type.patch OBS-URL: https://build.opensuse.org/request/show/846101 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd?expand=0&rev=123 --- fix-err-of-wrong-return-type.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/fix-err-of-wrong-return-type.patch b/fix-err-of-wrong-return-type.patch index 18307d0..b883522 100644 --- a/fix-err-of-wrong-return-type.patch +++ b/fix-err-of-wrong-return-type.patch @@ -9,3 +9,25 @@ diff -Naur drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/have_blk_ } #ifndef __same_type +diff -Naur drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/have_proc_create_single.c drbd-9.0.16+git.ab9777df/drbd/drbd-kernel-compat/tests/have_proc_create_single.c +--- drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/have_proc_create_single.c 2020-11-03 17:45:49.362231056 +0800 ++++ drbd-9.0.16+git.ab9777df/drbd/drbd-kernel-compat/tests/have_proc_create_single.c 2020-11-05 11:18:57.996540948 +0800 +@@ -8,6 +8,7 @@ + + static int foo_seq_show(struct seq_file *seq, void *v) + { ++ return 0; + } + + struct proc_dir_entry *foo(void) +diff -Naur drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/sock_ops_returns_addr_len.c drbd-9.0.16+git.ab9777df/drbd/drbd-kernel-compat/tests/sock_ops_returns_addr_len.c +--- drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/sock_ops_returns_addr_len.c 2020-11-03 17:45:49.362231056 +0800 ++++ drbd-9.0.16+git.ab9777df/drbd/drbd-kernel-compat/tests/sock_ops_returns_addr_len.c 2020-11-05 12:02:16.457436250 +0800 +@@ -1,5 +1,6 @@ + #include + int always_getpeername(struct socket *sock, struct sockaddr *addr) + { +- return sock->ops->getname(sock, addr, 2); ++ sock->ops->getname(sock, addr, 2); ++ return 0; + }