summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-23 17:12:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-23 17:12:58 +0000
commit9e5020b900e2339d111d038939a955d77288141c (patch)
tree5c008ebd790ecf310ea75ea7264ca0dcbe62d3ce
parentf37853ae8c5cb51d6ed6418aa163565a048493d5 (diff)
A small sprinking of #ifdef _KERNEL
-rw-r--r--sys/isofs/udf/udf.h11
-rw-r--r--sys/isofs/udf/udf_extern.h6
2 files changed, 14 insertions, 3 deletions
diff --git a/sys/isofs/udf/udf.h b/sys/isofs/udf/udf.h
index 2a36e2a6d08..888866d9154 100644
--- a/sys/isofs/udf/udf.h
+++ b/sys/isofs/udf/udf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: udf.h,v 1.15 2013/03/23 16:01:27 deraadt Exp $ */
+/* $OpenBSD: udf.h,v 1.16 2013/03/23 17:12:57 deraadt Exp $ */
/*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@@ -80,6 +80,10 @@ struct umount {
#define UDF_MNT_USES_VAT 0x02 /* Indicates a VAT must be used */
#define UDF_MNT_USES_META 0x04 /* Indicates we are using a Metadata partition*/
+#define VTOU(vp) ((struct unode *)((vp)->v_data))
+
+#ifdef _KERNEL
+
struct udf_dirstream {
struct unode *node;
struct umount *ump;
@@ -96,7 +100,6 @@ struct udf_dirstream {
};
#define VFSTOUDFFS(mp) ((struct umount *)((mp)->mnt_data))
-#define VTOU(vp) ((struct unode *)((vp)->v_data))
/*
* The block layer refers to things in terms of 512 byte blocks by default.
@@ -106,6 +109,7 @@ struct udf_dirstream {
#define RDSECTOR(devvp, sector, size, bp) \
bread(devvp, ((sector) << ump->um_bshift) / DEV_BSIZE, size, bp)
+
static __inline int
udf_readlblks(struct umount *ump, int sector, int size, struct buf **bp)
{
@@ -134,3 +138,6 @@ int udf_hashrem(struct unode *);
int udf_checktag(struct desc_tag *, uint16_t);
typedef uint16_t unicode_t;
+
+#endif /* _KERNEL */
+
diff --git a/sys/isofs/udf/udf_extern.h b/sys/isofs/udf/udf_extern.h
index 5665f5e3a48..90adb2aabd6 100644
--- a/sys/isofs/udf/udf_extern.h
+++ b/sys/isofs/udf/udf_extern.h
@@ -1,10 +1,12 @@
-/* $OpenBSD: udf_extern.h,v 1.11 2010/12/21 20:14:43 thib Exp $ */
+/* $OpenBSD: udf_extern.h,v 1.12 2013/03/23 17:12:57 deraadt Exp $ */
/*
* Written by Pedro Martelletto <pedro@ambientworks.net> in February 2005.
* Public domain.
*/
+#ifdef _KERNEL
+
/*
* udf_subr.c
*/
@@ -63,3 +65,5 @@ extern struct pool udf_ds_pool;
/* Set of UDF vnode operations.*/
extern struct vops udf_vops;
+
+#endif /* _KERNEL */