From 5de49fc7c2565ea3618b606fc3236107f190ab32 Mon Sep 17 00:00:00 2001 From: ad Date: Sun, 22 Mar 2020 14:27:33 +0000 Subject: [PATCH] Wrap vnode_impl.h in defined(_KERNEL) || defined(_KMEMUSER), and install it for kmem grovellers. --- distrib/sets/lists/comp/mi | 3 ++- sys/sys/Makefile | 4 ++-- sys/sys/vnode_impl.h | 6 ++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/distrib/sets/lists/comp/mi b/distrib/sets/lists/comp/mi index 3135d7a9fcba..2a54c0eae345 100644 --- a/distrib/sets/lists/comp/mi +++ b/distrib/sets/lists/comp/mi @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.2312 2020/03/03 00:38:12 christos Exp $ +# $NetBSD: mi,v 1.2313 2020/03/22 14:27:33 ad Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. ./etc/mtree/set.comp comp-sys-root @@ -3216,6 +3216,7 @@ ./usr/include/sys/vmmeter.h comp-c-include ./usr/include/sys/vnode.h comp-c-include ./usr/include/sys/vnode_if.h comp-c-include +./usr/include/sys/vnode_impl.h comp-c-include ./usr/include/sys/vsio.h comp-obsolete obsolete ./usr/include/sys/wait.h comp-c-include ./usr/include/sys/wapbl.h comp-c-include diff --git a/sys/sys/Makefile b/sys/sys/Makefile index 049fdb808acf..baa0ffc5d783 100644 --- a/sys/sys/Makefile +++ b/sys/sys/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.171 2019/12/14 15:30:37 ad Exp $ +# $NetBSD: Makefile,v 1.172 2020/03/22 14:27:33 ad Exp $ .include @@ -45,7 +45,7 @@ INCS= acct.h agpio.h aio.h ansi.h aout_mids.h ataio.h atomic.h \ timex.h tls.h trace.h tree.h tty.h ttychars.h ttycom.h \ ttydefaults.h ttydev.h types.h \ ucontext.h ucred.h uio.h un.h unistd.h unpcb.h utsname.h uuid.h \ - verified_exec.h videoio.h vmmeter.h vnode.h vnode_if.h \ + verified_exec.h videoio.h vmmeter.h vnode.h vnode_if.h vnode_impl.h \ wait.h wapbl.h wapbl_replay.h wdog.h xattr.h INCSYMLINKS=\ diff --git a/sys/sys/vnode_impl.h b/sys/sys/vnode_impl.h index 1c2664167200..927f89f96862 100644 --- a/sys/sys/vnode_impl.h +++ b/sys/sys/vnode_impl.h @@ -1,4 +1,4 @@ -/* $NetBSD: vnode_impl.h,v 1.21 2020/02/23 22:14:04 ad Exp $ */ +/* $NetBSD: vnode_impl.h,v 1.22 2020/03/22 14:27:33 ad Exp $ */ /*- * Copyright (c) 2016, 2019, 2020 The NetBSD Foundation, Inc. @@ -28,6 +28,7 @@ #ifndef _SYS_VNODE_IMPL_H_ #define _SYS_VNODE_IMPL_H_ +#if defined(_KERNEL) || defined(_KMEMUSER) #include @@ -143,4 +144,5 @@ int vcache_vget(vnode_t *); int vcache_tryvget(vnode_t *); int vfs_drainvnodes(void); -#endif /* !_SYS_VNODE_IMPL_H_ */ +#endif /* defined(_KERNEL) || defined(_KMEMUSER) */ +#endif /* !_SYS_VNODE_IMPL_H_ */