aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/tarfs/tarfs_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/tarfs/tarfs_vnops.c')
-rw-r--r--sys/fs/tarfs/tarfs_vnops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/tarfs/tarfs_vnops.c b/sys/fs/tarfs/tarfs_vnops.c
index 8c97fab185fc..afb8e05f5929 100644
--- a/sys/fs/tarfs/tarfs_vnops.c
+++ b/sys/fs/tarfs/tarfs_vnops.c
@@ -668,6 +668,8 @@ tarfs_vptofh(struct vop_vptofh_args *ap)
{
struct tarfs_fid *tfp;
struct tarfs_node *tnp;
+ _Static_assert(sizeof(struct tarfs_fid) <= sizeof(struct fid),
+ "struct tarfs_fid cannot be larger than struct fid");
tfp = (struct tarfs_fid *)ap->a_fhp;
tnp = VP_TO_TARFS_NODE(ap->a_vp);