File fix-err-of-wrong-return-type.patch of Package drbd.24680

diff -Naur drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/have_blk_qc_t_make_request.c drbd-9.0.16+git.ab9777df/drbd/drbd-kernel-compat/tests/have_blk_qc_t_make_request.c
--- drbd-9.0.16+git.ab9777df.orig/drbd/drbd-kernel-compat/tests/have_blk_qc_t_make_request.c	2020-11-03 17:45:49.362231056 +0800
+++ drbd-9.0.16+git.ab9777df/drbd/drbd-kernel-compat/tests/have_blk_qc_t_make_request.c	2020-11-03 19:11:54.843913135 +0800
@@ -11,6 +11,7 @@
 
 blk_qc_t drbd_make_request(struct request_queue *q, struct bio *bio)
 {
+		return 0;
 }
 
 #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 <linux/net.h>
 int always_getpeername(struct socket *sock, struct sockaddr *addr)
 {
-	return sock->ops->getname(sock, addr, 2);
+	sock->ops->getname(sock, addr, 2);
+	return 0;
 }
openSUSE Build Service is sponsored by