Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/dm Fix build of i386 ALL kernel with patch from Greg...



details:   https://anonhg.NetBSD.org/src/rev/04cbb5502ded
branches:  trunk
changeset: 753397:04cbb5502ded
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Fri Mar 26 15:46:04 2010 +0000

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

diffstat:

 sys/dev/dm/device-mapper.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r d1ecfef50d71 -r 04cbb5502ded sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c        Fri Mar 26 12:36:59 2010 +0000
+++ b/sys/dev/dm/device-mapper.c        Fri Mar 26 15:46:04 2010 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index