Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Don't include parse_cpu_options() unless we...



details:   https://anonhg.NetBSD.org/src/rev/16404a80280b
branches:  trunk
changeset: 509794:16404a80280b
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun May 13 13:50:01 2001 +0000

description:
Don't include parse_cpu_options() unless we're going to use it.  This fixes
a warning on arm26.

diffstat:

 sys/arch/arm/arm/cpufunc.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r c5fb862fb6bb -r 16404a80280b sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c        Sun May 13 13:48:11 2001 +0000
+++ b/sys/arch/arm/arm/cpufunc.c        Sun May 13 13:50:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.c,v 1.1 2001/05/06 18:01:43 bjh21 Exp $        */
+/*     $NetBSD: cpufunc.c,v 1.2 2001/05/13 13:50:01 bjh21 Exp $        */
 
 /*
  * arm8 support code Copyright (c) 1997 ARM Limited
@@ -1007,6 +1007,8 @@
  * CPU Setup code
  */
 
+#if defined(CPU_ARM6) || defined(CPU_ARM7) || defined(CPU_ARM8) || \
+       defined(CPU_SA110)
 int cpuctrl;
 
 #define IGN    0
@@ -1047,6 +1049,7 @@
        }
        return(cpuctrl);
 }
+#endif
 
 #if defined (CPU_ARM6) || defined(CPU_ARM7) || defined(CPU_ARM8)
 struct cpu_option arm678_options[] = {



Home | Main Index | Thread Index | Old Index