summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-20 11:29:07 +0000
committerphk <phk@FreeBSD.org>2003-01-20 11:29:07 +0000
commitdc9137bbd979dbcb834e09144336ab7a8cbfb202 (patch)
treed049888223593e4a73b94f4b0a1a778e5508f5a6 /sys/kern
parent81c42fccd43d253b039fdce53362ae041dca51fb (diff)
downloadFreeBSD-src-dc9137bbd979dbcb834e09144336ab7a8cbfb202.zip
FreeBSD-src-dc9137bbd979dbcb834e09144336ab7a8cbfb202.tar.gz
disk_dev_synth() is a NO_GEOM hack.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_conf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index a38928e..3f453b8 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -70,16 +70,20 @@ static int ready_for_devs;
static int free_devt;
SYSCTL_INT(_debug, OID_AUTO, free_devt, CTLFLAG_RW, &free_devt, 0, "");
+#ifdef NO_GEOM
/* XXX: This is a hack */
void disk_dev_synth(dev_t dev);
+#endif
struct cdevsw *
devsw(dev_t dev)
{
if (dev->si_devsw)
return (dev->si_devsw);
+#ifdef NO_GEOM
/* XXX: Hack around our backwards disk code */
disk_dev_synth(dev);
+#endif
if (dev->si_devsw)
return (dev->si_devsw);
#ifndef NODEVFS
OpenPOWER on IntegriCloud