summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-21 11:39:19 +0000
committerphk <phk@FreeBSD.org>2003-01-21 11:39:19 +0000
commit9362503ac1d0a2e1ddde1679c2664fcf9eaff45c (patch)
treecb8d6e4834f06ad1a432630d7715d912de05415b
parent2150fc5b59d6f35f73b930770b63821defa565ba (diff)
downloadFreeBSD-src-9362503ac1d0a2e1ddde1679c2664fcf9eaff45c.zip
FreeBSD-src-9362503ac1d0a2e1ddde1679c2664fcf9eaff45c.tar.gz
#ifdef NO_GEOM some bits here too.
-rw-r--r--sys/sys/disklabel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index fde605f..b430c04 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -329,6 +329,7 @@ static const char *fstypenames[] = {
#define dkmakeminor(unit, slice, part) \
(((slice) << 16) | (((unit) & 0x1e0) << 16) | \
(((unit) & 0x1f) << 3) | (part))
+#ifdef NO_GEOM
#define dkpart(dev) (minor(dev) & 7)
#define dkslice(dev) ((minor(dev) >> 16) & 0x1f)
#define dksparebits(dev) ((minor(dev) >> 25) & 0x7f)
@@ -348,6 +349,7 @@ int writedisklabel(dev_t dev, struct disklabel *lp);
#ifdef __alpha__
struct buf;
void alpha_fix_srm_checksum(struct buf *bp);
+#endif /* NO_GEOM */
#endif
#endif /* _KERNEL */
OpenPOWER on IntegriCloud