Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Fix compile if DKWEDGE_AUTODISCOVER isn't defined.



details:   https://anonhg.NetBSD.org/src/rev/ffb3f33b6081
branches:  trunk
changeset: 570138:ffb3f33b6081
user:      chris <chris%NetBSD.org@localhost>
date:      Sat Sep 25 16:42:15 2004 +0000

description:
Fix compile if DKWEDGE_AUTODISCOVER isn't defined.

(only tested with GENERIC cats kernel)

diffstat:

 sys/dev/dk.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (49 lines):

diff -r eb739ac13045 -r ffb3f33b6081 sys/dev/dk.c
--- a/sys/dev/dk.c      Sat Sep 25 16:27:38 2004 +0000
+++ b/sys/dev/dk.c      Sat Sep 25 16:42:15 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dk.c,v 1.1 2004/09/25 03:30:44 thorpej Exp $   */
+/*     $NetBSD: dk.c,v 1.2 2004/09/25 16:42:15 chris Exp $     */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -524,7 +524,9 @@
        return (error);
 }
 
+#ifdef DKWEDGE_AUTODISCOVER
 static int     dkwedge_discover_gpt(struct disk *, struct vnode *);
+#endif
 
 /*
  * dkwedge_discover:   [exported function]
@@ -594,6 +596,8 @@
 #endif /* DKWEDGE_AUTODISCOVER */
 }
 
+
+#ifdef DKWEDGE_AUTODISCOVER
 /*
  * dkwedge_read:
  *
@@ -621,6 +625,7 @@
        VOP_STRATEGY(vp, &b);
        return (biowait(&b));
 }
+#endif /* DKWEDGE_AUTODISCOVER */
 
 /*
  * dkwedge_lookup:
@@ -975,6 +980,7 @@
        return (ENXIO);
 }
 
+#ifdef DKWEDGE_AUTODISCOVER
 /*****************************************************************************
  * EFI GUID Partition Table support
  *****************************************************************************/
@@ -1235,3 +1241,4 @@
        free(buf, M_DEVBUF);
        return (error);
 }
+#endif /* DKWEDGE_AUTODISCOVER */



Home | Main Index | Thread Index | Old Index