Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke fix compile failure without DIAGNOSTIC.
details: https://anonhg.NetBSD.org/src/rev/ffa84a5ea554
branches: trunk
changeset: 336223:ffa84a5ea554
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Feb 19 08:59:56 2015 +0000
description:
fix compile failure without DIAGNOSTIC.
diffstat:
sys/arch/powerpc/booke/e500_tlb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 498eb679459a -r ffa84a5ea554 sys/arch/powerpc/booke/e500_tlb.c
--- a/sys/arch/powerpc/booke/e500_tlb.c Thu Feb 19 08:51:14 2015 +0000
+++ b/sys/arch/powerpc/booke/e500_tlb.c Thu Feb 19 08:59:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: e500_tlb.c,v 1.16 2015/01/23 06:52:55 nonaka Exp $ */
+/* $NetBSD: e500_tlb.c,v 1.17 2015/02/19 08:59:56 nonaka Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_tlb.c,v 1.16 2015/01/23 06:52:55 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_tlb.c,v 1.17 2015/02/19 08:59:56 nonaka Exp $");
#include <sys/param.h>
@@ -781,7 +781,7 @@
KASSERT(((pte & PTE_RPN_MASK) & (len - 1)) == 0);
if ((xtlb = e500_tlb_lookup_xtlb2(va, len)) != NULL) {
- psize_t mask = ~(xtlb->e_tlb.tlb_size - 1);
+ psize_t mask __diagused = ~(xtlb->e_tlb.tlb_size - 1);
KASSERT(len <= xtlb->e_tlb.tlb_size);
KASSERT((pte & mask) == (xtlb->e_tlb.tlb_pte & mask));
xtlb->e_refcnt++;
Home |
Main Index |
Thread Index |
Old Index