Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm avoid warning with options PLCOM_DEBUG for I...



details:   https://anonhg.NetBSD.org/src/rev/b3c4c76f032d
branches:  trunk
changeset: 778587:b3c4c76f032d
user:      bsh <bsh%NetBSD.org@localhost>
date:      Fri Apr 06 01:47:15 2012 +0000

description:
avoid warning with options PLCOM_DEBUG for INTEGRATOR.

diffstat:

 sys/arch/evbarm/conf/INTEGRATOR |  3 ++-
 sys/arch/evbarm/dev/plcom.c     |  9 +++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diffs (55 lines):

diff -r 2463d0744323 -r b3c4c76f032d sys/arch/evbarm/conf/INTEGRATOR
--- a/sys/arch/evbarm/conf/INTEGRATOR   Fri Apr 06 01:35:58 2012 +0000
+++ b/sys/arch/evbarm/conf/INTEGRATOR   Fri Apr 06 01:47:15 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: INTEGRATOR,v 1.64 2011/12/18 05:49:25 dholland Exp $
+#      $NetBSD: INTEGRATOR,v 1.65 2012/04/06 01:47:15 bsh Exp $
 #
 #      GENERIC -- ARM Integrator board Generic kernel
 #
@@ -155,6 +155,7 @@
 # PL010 uart
 plcom0         at ifpga? offset 0x06000000 irq 1
 plcom1         at ifpga? offset 0x07000000 irq 2
+#options       PLCOM_DEBUG
 
 # PL030 real time clock
 plrtc0         at ifpga? offset 0x05000000
diff -r 2463d0744323 -r b3c4c76f032d sys/arch/evbarm/dev/plcom.c
--- a/sys/arch/evbarm/dev/plcom.c       Fri Apr 06 01:35:58 2012 +0000
+++ b/sys/arch/evbarm/dev/plcom.c       Fri Apr 06 01:47:15 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: plcom.c,v 1.33 2012/02/02 19:42:59 tls Exp $   */
+/*     $NetBSD: plcom.c,v 1.34 2012/04/06 01:47:16 bsh Exp $   */
 
 /*-
  * Copyright (c) 2001 ARM Ltd
@@ -94,7 +94,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.33 2012/02/02 19:42:59 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plcom.c,v 1.34 2012/04/06 01:47:16 bsh Exp $");
 
 #include "opt_plcom.h"
 #include "opt_ddb.h"
@@ -280,9 +280,9 @@
 #ifdef PLCOM_DEBUG
 int    plcom_debug = 0;
 
-void plcomstatus (struct plcom_softc *, char *);
+void plcomstatus (struct plcom_softc *, const char *);
 void
-plcomstatus(struct plcom_softc *sc, char *str)
+plcomstatus(struct plcom_softc *sc, const char *str)
 {
        struct tty *tp = sc->sc_tty;
 
@@ -304,6 +304,7 @@
 }
 #endif
 
+/* XXX this function is not used? */
 int
 plcomprobe1(bus_space_tag_t iot, bus_space_handle_t ioh)
 {



Home | Main Index | Thread Index | Old Index