Source-Changes-HG archive

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

[src/trunk]: src/sys/opencrypto fix the build



details:   https://anonhg.NetBSD.org/src/rev/b20b0f1af798
branches:  trunk
changeset: 812036:b20b0f1af798
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Nov 28 03:40:43 2015 +0000

description:
fix the build

diffstat:

 sys/opencrypto/crypto.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 711ec4687be3 -r b20b0f1af798 sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c   Sat Nov 28 03:06:45 2015 +0000
+++ b/sys/opencrypto/crypto.c   Sat Nov 28 03:40:43 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto.c,v 1.46 2015/11/28 03:06:45 pgoyette Exp $ */
+/*     $NetBSD: crypto.c,v 1.47 2015/11/28 03:40:43 christos Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $   */
 /*     $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
 
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.46 2015/11/28 03:06:45 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.47 2015/11/28 03:40:43 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/reboot.h>
@@ -247,7 +247,7 @@
 #endif
 
 #ifdef _MODULE
-       static struct sysctllog *sysctl_opencrypto_clog;
+static struct sysctllog *sysctl_opencrypto_clog;
 #endif
 
 static int
@@ -324,8 +324,10 @@
                mutex_spin_exit(&crypto_ret_q_mtx);
        }
 
+#ifdef _MODULE
        if (sysctl_opencrypto_clog != NULL)
                sysctl_teardown(&sysctl_opencrypto_clog);
+#endif
 
        unregister_swi(SWI_CRYPTO, cryptointr);
 



Home | Main Index | Thread Index | Old Index