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; + }