summaryrefslogtreecommitdiffstats
path: root/sys/mips/rmi
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2010-12-09 12:30:13 +0000
committerjchandra <jchandra@FreeBSD.org>2010-12-09 12:30:13 +0000
commitac0ae73cc591fb887a0639603b9a2675a9c2f5ea (patch)
tree48587eb66fde353655cf70ce88ebe672cd64f615 /sys/mips/rmi
parenta8871388a3e0cd7005c8910d76021acd6e66f939 (diff)
downloadFreeBSD-src-ac0ae73cc591fb887a0639603b9a2675a9c2f5ea.zip
FreeBSD-src-ac0ae73cc591fb887a0639603b9a2675a9c2f5ea.tar.gz
Fix compilation when DEBUG option is enabled.
- remove unused code in mips/rmi/xlr_pci.c - remove unused variable in mips/rmi/dev/nlge/if_nlge.c - fix reference to old function in mips/mips/pmap.c Reported by: Prabhath Raman (prabhath at netlogicmicro com)
Diffstat (limited to 'sys/mips/rmi')
-rw-r--r--sys/mips/rmi/dev/nlge/if_nlge.c1
-rw-r--r--sys/mips/rmi/xlr_pci.c7
2 files changed, 0 insertions, 8 deletions
diff --git a/sys/mips/rmi/dev/nlge/if_nlge.c b/sys/mips/rmi/dev/nlge/if_nlge.c
index 9ff88ea..5c3dd2f 100644
--- a/sys/mips/rmi/dev/nlge/if_nlge.c
+++ b/sys/mips/rmi/dev/nlge/if_nlge.c
@@ -213,7 +213,6 @@ static int send_fmn_msg_tx(struct nlge_softc *, struct msgrng_msg *,
//#define DEBUG
#ifdef DEBUG
static int mac_debug = 1;
-static int reg_dump = 0;
#undef PDEBUG
#define PDEBUG(fmt, args...) \
do {\
diff --git a/sys/mips/rmi/xlr_pci.c b/sys/mips/rmi/xlr_pci.c
index 3204691..8cdaede 100644
--- a/sys/mips/rmi/xlr_pci.c
+++ b/sys/mips/rmi/xlr_pci.c
@@ -105,13 +105,6 @@ __FBSDID("$FreeBSD$");
(MSI_MIPS_DATA_TRGRLVL | MSI_MIPS_DATA_DELFIXED | \
MSI_MIPS_DATA_ASSERT | (irq))
-#define DEBUG
-#ifdef DEBUG
-#define dbg_devprintf device_printf
-#else
-#define dbg_devprintf(dev, fmt, ...)
-#endif
-
struct xlr_pcib_softc {
bus_dma_tag_t sc_pci_dmat; /* PCI DMA tag pointer */
};
OpenPOWER on IntegriCloud