Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 tlb_print_*() are used only if _ARM_ARCH_...



details:   https://anonhg.NetBSD.org/src/rev/87a3a4da95b7
branches:  trunk
changeset: 957552:87a3a4da95b7
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Dec 03 10:23:45 2020 +0000

description:
tlb_print_*() are used only if _ARM_ARCH_7; caught by clang -Wunused-function.

diffstat:

 sys/arch/arm/arm32/db_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r e86fa7af48be -r 87a3a4da95b7 sys/arch/arm/arm32/db_machdep.c
--- a/sys/arch/arm/arm32/db_machdep.c   Thu Dec 03 08:48:06 2020 +0000
+++ b/sys/arch/arm/arm32/db_machdep.c   Thu Dec 03 10:23:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.37 2020/10/30 18:54:36 skrll Exp $    */
+/*     $NetBSD: db_machdep.c,v 1.38 2020/12/03 10:23:45 rin Exp $      */
 
 /*
  * Copyright (c) 1996 Mark Brinicombe
@@ -34,7 +34,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.37 2020/10/30 18:54:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.38 2020/12/03 10:23:45 rin Exp $");
 
 #include <sys/param.h>
 
@@ -220,6 +220,7 @@
        cpu_reset_address();
 }
 
+#ifdef _ARM_ARCH_7
 static void
 tlb_print_common_header(const char *str)
 {
@@ -405,7 +406,6 @@
        return NULL;
 }
 
-#ifdef _ARM_ARCH_7
 void
 db_show_tlb_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
 {



Home | Main Index | Thread Index | Old Index