Source-Changes-HG archive

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

[src/trunk]: src/sys Only use MALLOC_DECLARE() in kernel namespace.



details:   https://anonhg.NetBSD.org/src/rev/72ac3eb91e35
branches:  trunk
changeset: 542567:72ac3eb91e35
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Feb 01 18:34:14 2003 +0000

description:
Only use MALLOC_DECLARE() in kernel namespace.

diffstat:

 sys/dev/raidframe/raidframevar.h |  4 +++-
 sys/ufs/lfs/lfs_extern.h         |  5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r f6b21acf6d4c -r 72ac3eb91e35 sys/dev/raidframe/raidframevar.h
--- a/sys/dev/raidframe/raidframevar.h  Sat Feb 01 18:31:09 2003 +0000
+++ b/sys/dev/raidframe/raidframevar.h  Sat Feb 01 18:34:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raidframevar.h,v 1.2 2003/02/01 06:23:40 thorpej Exp $ */
+/*     $NetBSD: raidframevar.h,v 1.3 2003/02/01 18:34:14 tron Exp $ */
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -164,7 +164,9 @@
 #define RF_FALSE 0
 
 /* Malloc types. */
+#ifdef _KERNEL
 MALLOC_DECLARE(M_RAIDFRAME);
+#endif
 
 /*
  * Now, some generic types
diff -r f6b21acf6d4c -r 72ac3eb91e35 sys/ufs/lfs/lfs_extern.h
--- a/sys/ufs/lfs/lfs_extern.h  Sat Feb 01 18:31:09 2003 +0000
+++ b/sys/ufs/lfs/lfs_extern.h  Sat Feb 01 18:34:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_extern.h,v 1.37 2003/02/01 06:23:53 thorpej Exp $  */
+/*     $NetBSD: lfs_extern.h,v 1.38 2003/02/01 18:34:14 tron Exp $     */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -73,8 +73,11 @@
 #ifndef _UFS_LFS_LFS_EXTERN_H_
 #define _UFS_LFS_LFS_EXTERN_H_
 
+#ifdef _KERNEL
 #include <sys/mallocvar.h>
+
 MALLOC_DECLARE(M_SEGMENT);
+#endif
 
 /* Copied from ext2fs for ITIMES.  XXX This is a bogus use of v_tag. */
 #define IS_LFS_VNODE(vp)   (vp->v_tag == VT_LFS)



Home | Main Index | Thread Index | Old Index