[dm-devel] [PATCH 52/57] libmultipath: make 'dm_addmap' static
Hannes Reinecke
hare at suse.de
Wed Apr 27 11:10:53 UTC 2016
dm_addmap() is only used within devmapper.c, so it can be made
static.
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
libmultipath/devmapper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c
index b10f9e6..4a87bf7 100644
--- a/libmultipath/devmapper.c
+++ b/libmultipath/devmapper.c
@@ -275,7 +275,7 @@ dm_device_remove (const char *name, int needsync, int deferred_remove) {
deferred_remove, needsync ? &cookie : NULL);
}
-extern int
+static int
dm_addmap (int task, const char *target, struct multipath *mpp,
char * params, int ro, uint32_t *cookie) {
int r = 0;
--
2.6.6
More information about the dm-devel
mailing list