Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Fix MODULE() dependencies to account for VND_COMPRES...
details: https://anonhg.NetBSD.org/src/rev/4673400c3caa
branches: trunk
changeset: 330803:4673400c3caa
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Jul 22 13:32:59 2014 +0000
description:
Fix MODULE() dependencies to account for VND_COMPRESSION
diffstat:
sys/dev/vnd.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 37a1c3f39c80 -r 4673400c3caa sys/dev/vnd.c
--- a/sys/dev/vnd.c Tue Jul 22 08:29:51 2014 +0000
+++ b/sys/dev/vnd.c Tue Jul 22 13:32:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.229 2014/03/22 16:08:51 prlw1 Exp $ */
+/* $NetBSD: vnd.c,v 1.230 2014/07/22 13:32:59 pooka Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.229 2014/03/22 16:08:51 prlw1 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.230 2014/07/22 13:32:59 pooka Exp $");
#if defined(_KERNEL_OPT)
#include "opt_vnd.h"
@@ -2039,7 +2039,13 @@
#include <sys/module.h>
-MODULE(MODULE_CLASS_DRIVER, vnd, "zlib");
+#ifdef VND_COMPRESSION
+#define VND_DEPENDS "zlib"
+#else
+#define VND_DEPENDS NULL
+#endif
+
+MODULE(MODULE_CLASS_DRIVER, vnd, VND_DEPENDS);
CFDRIVER_DECL(vnd, DV_DISK, NULL);
static int
Home |
Main Index |
Thread Index |
Old Index