Module Name:    src
Committed By:   jakllsch
Date:           Fri Mar 26 15:46:05 UTC 2010

Modified Files:
        src/sys/dev/dm: device-mapper.c

Log Message:
Fix build of i386 ALL kernel with patch from Greg A. Woods in PR/43056.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/dm/device-mapper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/dm/device-mapper.c
diff -u src/sys/dev/dm/device-mapper.c:1.21 src/sys/dev/dm/device-mapper.c:1.22
--- src/sys/dev/dm/device-mapper.c:1.21	Tue Mar 23 15:09:45 2010
+++ src/sys/dev/dm/device-mapper.c	Fri Mar 26 15:46:04 2010
@@ -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 @@
 
 /* attach and detach routines */
 void dmattach(int);
+#ifdef _MODULE
 static int dmdestroy(void);
+#endif
 
 static void dm_doinit(void);
 
@@ -297,6 +299,7 @@
 	}
 }
 
+#ifdef _MODULE
 /* Destroy routine */
 static int
 dmdestroy(void)
@@ -313,6 +316,7 @@
 
 	return 0;
 }
+#endif /* _MODULE */
 
 static int
 dmopen(dev_t dev, int flags, int mode, struct lwp *l)

Reply via email to