summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-12-06 11:19:37 +0000
committerru <ru@FreeBSD.org>2005-12-06 11:19:37 +0000
commit3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9 (patch)
treed4aab888a37abefaa2332f515bb2be9862352b91 /sys/pc98/cbus
parentf5b3d1a6c477ee8fd2cbe84115ae58ada92829f8 (diff)
downloadFreeBSD-src-3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9.zip
FreeBSD-src-3db1ffb04091aeb5cbd6b87a4fa136442d8d3bc9.tar.gz
Fix -Wundef warnings from compiling GENERIC and LINT kernels of
all architectures.
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r--sys/pc98/cbus/gdc.c6
-rw-r--r--sys/pc98/cbus/ppc.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c
index c7dd61e..f5719f0 100644
--- a/sys/pc98/cbus/gdc.c
+++ b/sys/pc98/cbus/gdc.c
@@ -94,7 +94,7 @@ static int gdc_attach_unit(int unit, gdc_softc_t *sc, int flags);
static int gdc_alloc_resource(device_t dev);
static int gdc_release_resource(device_t dev);
-#if FB_INSTALL_CDEV
+#ifdef FB_INSTALL_CDEV
static d_open_t gdcopen;
static d_close_t gdcclose;
@@ -1463,7 +1463,7 @@ gdc_dev_ioctl(video_adapter_t *adp, u_long cmd, caddr_t arg)
static int
gdc_diag(video_adapter_t *adp, int level)
{
-#if FB_DEBUG > 1
+#if defined(FB_DEBUG) && FB_DEBUG > 1
int i;
#endif
@@ -1472,7 +1472,7 @@ gdc_diag(video_adapter_t *adp, int level)
fb_dump_adp_info(DRIVER_NAME, adp, level);
-#if FB_DEBUG > 1
+#if defined(FB_DEBUG) && FB_DEBUG > 1
for (i = 0; bios_vmode[i].vi_mode != EOT; ++i) {
if (bios_vmode[i].vi_mode == NA)
continue;
diff --git a/sys/pc98/cbus/ppc.c b/sys/pc98/cbus/ppc.c
index e04e3fb..664336e 100644
--- a/sys/pc98/cbus/ppc.c
+++ b/sys/pc98/cbus/ppc.c
@@ -1554,7 +1554,7 @@ ppcintr(void *arg)
ctr = r_ctr(ppc);
ecr = r_ecr(ppc);
-#if PPC_DEBUG > 1
+#if defined(PPC_DEBUG) && PPC_DEBUG > 1
printf("![%x/%x/%x]", ctr, ecr, str);
#endif
OpenPOWER on IntegriCloud