Let's define symbols before using them.
This commit is contained in:
parent
accd0839b6
commit
4464b377cc
8
external/cddl/osnet/sys/sys/kmem.h
vendored
8
external/cddl/osnet/sys/sys/kmem.h
vendored
@ -1,5 +1,5 @@
|
||||
|
||||
/* $NetBSD: kmem.h,v 1.8 2017/11/18 13:51:56 christos Exp $ */
|
||||
/* $NetBSD: kmem.h,v 1.9 2017/11/18 18:52:59 kre Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2009 The NetBSD Foundation, Inc.
|
||||
@ -37,6 +37,9 @@
|
||||
#include_next <sys/pool.h>
|
||||
#include_next <sys/vmem.h>
|
||||
|
||||
#define KM_PUSHPAGE 0x00 /* XXXNETBSD */
|
||||
#define KMC_NODEBUG 0x00
|
||||
|
||||
typedef void kmem_cache_t;
|
||||
|
||||
u_long kmem_size(void);
|
||||
@ -88,7 +91,4 @@ kmem_cache_alloc(kmem_cache_t *cache, int flags)
|
||||
#define kmem_cache_free(cache, buf) pool_cache_put(cache, buf)
|
||||
#define kmem_cache_reap_now(cache) pool_cache_invalidate(cache)
|
||||
|
||||
#define KM_PUSHPAGE 0x00 /* XXXNETBSD */
|
||||
#define KMC_NODEBUG 0x00
|
||||
|
||||
#endif /* _OPENSOLARIS_SYS_KMEM_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user