diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index ec0ced9b4a06..9380dc4631c7 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_subr.c,v 1.19 2001/10/30 01:11:54 lukem Exp $ */ +/* $NetBSD: ffs_subr.c,v 1.20 2002/01/09 23:51:00 lukem Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -36,22 +36,24 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_subr.c,v 1.19 2001/10/30 01:11:54 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_subr.c,v 1.20 2002/01/09 23:51:00 lukem Exp $"); #include -#include -#ifndef _KERNEL -#include -#include -#include -#include -#endif /* in ffs_tables.c */ extern int inside[], around[]; extern u_char *fragtbl[]; -#ifdef _KERNEL +#ifndef _KERNEL +#include +#include +#include +#include +void panic __P((const char *, ...)) + __attribute__((__noreturn__,__format__(__printf__,1,2))); + +#else /* _KERNEL */ +#include #include #include #include @@ -98,7 +100,7 @@ ffs_blkatoff(v) *ap->a_bpp = bp; return (0); } -#endif +#endif /* _KERNEL */ /* * Update the frsum fields to reflect addition or deletion @@ -170,7 +172,7 @@ ffs_checkoverlap(bp, ip) panic("Disk buffer overlap"); } } -#endif /* DIAGNOSTIC */ +#endif /* _KERNEL && DIAGNOSTIC */ /* * block operations