Module Name: src
Committed By: pgoyette
Date: Mon Jul 18 11:13:23 UTC 2016
Modified Files:
src/sys/dev/raidframe [pgoyette-localcount]: rf_netbsdkintf.c
Log Message:
We created two different 'stuct localcount' for a reason - devsw_attach()
requires them to be different!
So use them both in their respective {b,c}devsw initializations.
To generate a diff of this commit:
cvs rdiff -u -r1.345.2.2 -r1.345.2.3 src/sys/dev/raidframe/rf_netbsdkintf.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/raidframe/rf_netbsdkintf.c
diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.345.2.2 src/sys/dev/raidframe/rf_netbsdkintf.c:1.345.2.3
--- src/sys/dev/raidframe/rf_netbsdkintf.c:1.345.2.2 Sun Jul 17 05:05:10 2016
+++ src/sys/dev/raidframe/rf_netbsdkintf.c Mon Jul 18 11:13:23 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.345.2.2 2016/07/17 05:05:10 pgoyette Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.345.2.3 2016/07/18 11:13:23 pgoyette Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.345.2.2 2016/07/17 05:05:10 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.345.2.3 2016/07/18 11:13:23 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -248,7 +248,7 @@ const struct cdevsw raid_cdevsw = {
.d_kqfilter = nokqfilter,
.d_discard = nodiscard,
#ifdef _MODULE
- .d_localcount = &raid_localcount_bdev,
+ .d_localcount = &raid_localcount_cdev,
#endif
.d_flag = D_DISK
};