From 3e3927fb44631accfdbac72e2e3d7fc847df7ce4 Mon Sep 17 00:00:00 2001 From: guenther Date: Sat, 17 Jul 2010 19:24:58 +0000 Subject: [PATCH] Wrap kernel function declarations in #ifdef _KERNEL to eliminate warnings when the header is used by userspace. ok miod@ --- sys/miscfs/specfs/specdev.h | 4 +++- sys/sys/specdev.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h index 55d9322b493..7e1a83a7648 100644 --- a/sys/miscfs/specfs/specdev.h +++ b/sys/miscfs/specfs/specdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specdev.h,v 1.25 2008/05/03 14:41:29 thib Exp $ */ +/* $OpenBSD: specdev.h,v 1.26 2010/07/17 19:24:58 guenther Exp $ */ /* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */ /* @@ -78,6 +78,7 @@ struct cloneinfo { extern struct vnode *speclisth[SPECHSZ]; +#ifdef _KERNEL /* * Prototypes for special file operations on vnodes. */ @@ -112,3 +113,4 @@ int spec_vnoperate(void *); /* spec_subr.c */ int spec_open_clone(struct vop_open_args *); int spec_close_clone(struct vop_close_args *); +#endif /* _KERNEL */ diff --git a/sys/sys/specdev.h b/sys/sys/specdev.h index 55d9322b493..7e1a83a7648 100644 --- a/sys/sys/specdev.h +++ b/sys/sys/specdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specdev.h,v 1.25 2008/05/03 14:41:29 thib Exp $ */ +/* $OpenBSD: specdev.h,v 1.26 2010/07/17 19:24:58 guenther Exp $ */ /* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */ /* @@ -78,6 +78,7 @@ struct cloneinfo { extern struct vnode *speclisth[SPECHSZ]; +#ifdef _KERNEL /* * Prototypes for special file operations on vnodes. */ @@ -112,3 +113,4 @@ int spec_vnoperate(void *); /* spec_subr.c */ int spec_open_clone(struct vop_open_args *); int spec_close_clone(struct vop_close_args *); +#endif /* _KERNEL */ -- 2.20.1