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
This commit is contained in:
parent
e26ad2500c
commit
8a631cf560
@ -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 <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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user