Module Name:    src
Committed By:   ahoka
Date:           Sun Aug 28 07:22:48 UTC 2011

Modified Files:
        src/sys/dev/dm: dm_target.c

Log Message:
readd assertions noew with the correct struct
im wondering why the module cflags didnt warn about this obvious typo


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/dm/dm_target.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/dm/dm_target.c
diff -u src/sys/dev/dm/dm_target.c:1.17 src/sys/dev/dm/dm_target.c:1.18
--- src/sys/dev/dm/dm_target.c:1.17	Sat Aug 27 23:31:12 2011
+++ src/sys/dev/dm/dm_target.c	Sun Aug 28 07:22:48 2011
@@ -1,4 +1,4 @@
-/*        $NetBSD: dm_target.c,v 1.17 2011/08/27 23:31:12 joerg Exp $      */
+/*        $NetBSD: dm_target.c,v 1.18 2011/08/28 07:22:48 ahoka Exp $      */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -150,6 +150,16 @@
 {
 	dm_target_t *dmt;
 
+	/* Sanity check for any missing function */
+	KASSERT(dm_target->init != NULL);
+	KASSERT(dm_target->status != NULL);
+	KASSERT(dm_target->strategy != NULL);
+	KASSERT(dm_target->deps != NULL);
+	KASSERT(dm_target->destroy != NULL);
+	KASSERT(dm_target->upcall != NULL);
+	KASSERT(dm_target->sync != NULL);
+	KASSERT(dm_target->secsize != NULL);
+
 	mutex_enter(&dm_target_mutex);
 
 	dmt = dm_target_lookup_name(dm_target->name);

Reply via email to