summaryrefslogtreecommitdiff
path: root/sys/dev/dm
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2010-03-26 15:46:04 +0000
committerjakllsch <jakllsch@NetBSD.org>2010-03-26 15:46:04 +0000
commitc2ca7b837eea358c25303243398ac7eaedf3a9fa (patch)
tree8bc68ef28d0f6183c658a6d883e07f7a7a2f88e9 /sys/dev/dm
parente235f1e85016212319bc5092bf0be3fcc0e7d979 (diff)
Fix build of i386 ALL kernel with patch from Greg A. Woods in PR/43056.
Diffstat (limited to 'sys/dev/dm')
-rw-r--r--sys/dev/dm/device-mapper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/dm/device-mapper.c b/sys/dev/dm/device-mapper.c
index 0531ae827cb..21a106d8199 100644
--- a/sys/dev/dm/device-mapper.c
+++ b/sys/dev/dm/device-mapper.c
@@ -1,4 +1,4 @@
-/* $NetBSD: device-mapper.c,v 1.21 2010/03/23 15:09:45 jakllsch Exp $ */
+/* $NetBSD: device-mapper.c,v 1.22 2010/03/26 15:46:04 jakllsch Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -59,7 +59,9 @@ static dev_type_size(dmsize);
/* attach and detach routines */
void dmattach(int);
+#ifdef _MODULE
static int dmdestroy(void);
+#endif
static void dm_doinit(void);
@@ -297,6 +299,7 @@ dmattach(int n)
}
}
+#ifdef _MODULE
/* Destroy routine */
static int
dmdestroy(void)
@@ -313,6 +316,7 @@ dmdestroy(void)
return 0;
}
+#endif /* _MODULE */
static int
dmopen(dev_t dev, int flags, int mode, struct lwp *l)