From owner-svn-src-projects@freebsd.org Fri Feb 19 16:53:43 2016 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DCE0AAE80B for ; Fri, 19 Feb 2016 16:53:43 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DFAF91139; Fri, 19 Feb 2016 16:53:42 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1JGrfQM061150; Fri, 19 Feb 2016 16:53:41 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1JGrfAm061149; Fri, 19 Feb 2016 16:53:41 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201602191653.u1JGrfAm061149@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Fri, 19 Feb 2016 16:53:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r295817 - projects/mips64-clang/sys/mips/mips X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 16:53:43 -0000 Author: sbruno Date: Fri Feb 19 16:53:41 2016 New Revision: 295817 URL: https://svnweb.freebsd.org/changeset/base/295817 Log: Apparently, tlb_write_random() is unused in the mips kernel. #ifdef it out but leave it in place so it can be evaluated. Modified: projects/mips64-clang/sys/mips/mips/tlb.c Modified: projects/mips64-clang/sys/mips/mips/tlb.c ============================================================================== --- projects/mips64-clang/sys/mips/mips/tlb.c Fri Feb 19 16:53:21 2016 (r295816) +++ projects/mips64-clang/sys/mips/mips/tlb.c Fri Feb 19 16:53:41 2016 (r295817) @@ -88,12 +88,19 @@ tlb_write_indexed(void) mips_cp0_sync(); } +/* + * Appears to be unused as reported by clang. Leave it here + * commented out until such time as we decide that we don't want + * it anymore. + */ +#if 0 static inline void tlb_write_random(void) { __asm __volatile ("tlbwr" : : : "memory"); mips_cp0_sync(); } +#endif static void tlb_invalidate_one(unsigned);