From owner-svn-src-all@FreeBSD.ORG Thu Dec 9 12:30:13 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C447A1065674; Thu, 9 Dec 2010 12:30:13 +0000 (UTC) (envelope-from jchandra@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 989898FC15; Thu, 9 Dec 2010 12:30:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB9CUDN0038594; Thu, 9 Dec 2010 12:30:13 GMT (envelope-from jchandra@svn.freebsd.org) Received: (from jchandra@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB9CUDV9038590; Thu, 9 Dec 2010 12:30:13 GMT (envelope-from jchandra@svn.freebsd.org) Message-Id: <201012091230.oB9CUDV9038590@svn.freebsd.org> From: "Jayachandran C." Date: Thu, 9 Dec 2010 12:30:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216324 - in head/sys/mips: mips rmi rmi/dev/nlge X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 12:30:13 -0000 Author: jchandra Date: Thu Dec 9 12:30:13 2010 New Revision: 216324 URL: http://svn.freebsd.org/changeset/base/216324 Log: 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) Modified: head/sys/mips/mips/pmap.c head/sys/mips/rmi/dev/nlge/if_nlge.c head/sys/mips/rmi/xlr_pci.c Modified: head/sys/mips/mips/pmap.c ============================================================================== --- head/sys/mips/mips/pmap.c Thu Dec 9 12:25:45 2010 (r216323) +++ head/sys/mips/mips/pmap.c Thu Dec 9 12:30:13 2010 (r216324) @@ -3098,7 +3098,7 @@ pads(pmap_t pm) va >= VM_MAXUSER_ADDRESS) continue; ptep = pmap_pte(pm, va); - if (pmap_pte_v(ptep)) + if (pte_test(ptep, PTE_V)) printf("%x:%x ", va, *(int *)ptep); } Modified: head/sys/mips/rmi/dev/nlge/if_nlge.c ============================================================================== --- head/sys/mips/rmi/dev/nlge/if_nlge.c Thu Dec 9 12:25:45 2010 (r216323) +++ head/sys/mips/rmi/dev/nlge/if_nlge.c Thu Dec 9 12:30:13 2010 (r216324) @@ -213,7 +213,6 @@ static int send_fmn_msg_tx(struct nlge_s //#define DEBUG #ifdef DEBUG static int mac_debug = 1; -static int reg_dump = 0; #undef PDEBUG #define PDEBUG(fmt, args...) \ do {\ Modified: head/sys/mips/rmi/xlr_pci.c ============================================================================== --- head/sys/mips/rmi/xlr_pci.c Thu Dec 9 12:25:45 2010 (r216323) +++ head/sys/mips/rmi/xlr_pci.c Thu Dec 9 12:30:13 2010 (r216324) @@ -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 */ };