[dm-devel] [PATCH 4/7] multipathd: Fix type of rcu_unregister()
Bart Van Assche
bart.vanassche at sandisk.com
Wed Jul 27 21:13:25 UTC 2016
This patch avoids that gcc reports the following compiler warning:
initialization from incompatible pointer type [-Wincompatible-pointer-types]
pthread_cleanup_push(rcu_unregister, NULL);
Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
---
multipathd/main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/multipathd/main.c b/multipathd/main.c
index 8784307..0cd822b 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1126,10 +1126,9 @@ out:
return r;
}
-static void *rcu_unregister(void *param)
+static void rcu_unregister(void *param)
{
rcu_unregister_thread();
- return NULL;
}
static void *
--
2.9.2
More information about the dm-devel
mailing list