Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Make this compile for SUN4-only kernels



details:   https://anonhg.NetBSD.org/src/rev/dd6b0a0fd4ff
branches:  trunk
changeset: 371234:dd6b0a0fd4ff
user:      jdc <jdc%NetBSD.org@localhost>
date:      Fri Sep 30 14:32:45 2022 +0000

description:
Make this compile for SUN4-only kernels
(move namebuf inside the SUN4C/SUN4M/SUN4D ifdef to match where it's used).

diffstat:

 sys/arch/sparc/sparc/autoconf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r de209010fe2b -r dd6b0a0fd4ff sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Fri Sep 30 07:36:36 2022 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Fri Sep 30 14:32:45 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.270 2022/01/22 11:49:16 thorpej Exp $ */
+/*     $NetBSD: autoconf.c,v 1.271 2022/09/30 14:32:45 jdc Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.270 2022/01/22 11:49:16 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.271 2022/09/30 14:32:45 jdc Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -1119,8 +1119,8 @@
        };
 
        struct mainbus_attach_args ma;
+#if defined(SUN4C) || defined(SUN4M) || defined(SUN4D)
        char namebuf[32];
-#if defined(SUN4C) || defined(SUN4M) || defined(SUN4D)
        const char *sp = NULL;
        int node0, node;
        const struct boot_special *openboot_special, *ssp;



Home | Main Index | Thread Index | Old Index