Source-Changes-HG archive

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

[src/trunk]: src/sys Some backends may use ncr53c9x_abort(), so remove static...



details:   https://anonhg.NetBSD.org/src/rev/6cebc2bd91fc
branches:  trunk
changeset: 747095:6cebc2bd91fc
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Sep 02 10:34:04 2009 +0000

description:
Some backends may use ncr53c9x_abort(), so remove static declaration from
the function and explicitly declare it in ncr53c9xvar.h.  Noticed by he@.

diffstat:

 sys/arch/next68k/dev/esp.c |  5 ++---
 sys/dev/ic/ncr53c9x.c      |  5 ++---
 sys/dev/ic/ncr53c9xvar.h   |  3 ++-
 3 files changed, 6 insertions(+), 7 deletions(-)

diffs (68 lines):

diff -r 69d0dec242b3 -r 6cebc2bd91fc sys/arch/next68k/dev/esp.c
--- a/sys/arch/next68k/dev/esp.c        Wed Sep 02 08:07:05 2009 +0000
+++ b/sys/arch/next68k/dev/esp.c        Wed Sep 02 10:34:04 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: esp.c,v 1.57 2008/12/16 22:35:24 christos Exp $        */
+/*     $NetBSD: esp.c,v 1.58 2009/09/02 10:34:05 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: esp.c,v 1.57 2008/12/16 22:35:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: esp.c,v 1.58 2009/09/02 10:34:05 tsutsui Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -649,7 +649,6 @@
                                }
                                xfer_len = esc->sc_dmasize - resid;
                        } else {
-extern void    ncr53c9x_abort(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
 #define ncr53c9x_sched_msgout(m) \
        do {                                                    \
                NCR_MISC(("ncr53c9x_sched_msgout %x %d", m, __LINE__)); \
diff -r 69d0dec242b3 -r 6cebc2bd91fc sys/dev/ic/ncr53c9x.c
--- a/sys/dev/ic/ncr53c9x.c     Wed Sep 02 08:07:05 2009 +0000
+++ b/sys/dev/ic/ncr53c9x.c     Wed Sep 02 10:34:04 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr53c9x.c,v 1.139 2009/08/29 06:05:39 tsutsui Exp $   */
+/*     $NetBSD: ncr53c9x.c,v 1.140 2009/09/02 10:34:04 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.139 2009/08/29 06:05:39 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr53c9x.c,v 1.140 2009/09/02 10:34:04 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -115,7 +115,6 @@
 static void    ncr53c9x_msgout(struct ncr53c9x_softc *);
 static void    ncr53c9x_timeout(void *arg);
 static void    ncr53c9x_watch(void *arg);
-static void    ncr53c9x_abort(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
 static void    ncr53c9x_dequeue(struct ncr53c9x_softc *,
                                 struct ncr53c9x_ecb *);
 static int     ncr53c9x_ioctl(struct scsipi_channel *, u_long,
diff -r 69d0dec242b3 -r 6cebc2bd91fc sys/dev/ic/ncr53c9xvar.h
--- a/sys/dev/ic/ncr53c9xvar.h  Wed Sep 02 08:07:05 2009 +0000
+++ b/sys/dev/ic/ncr53c9xvar.h  Wed Sep 02 10:34:04 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr53c9xvar.h,v 1.52 2009/05/12 14:25:18 cegger Exp $  */
+/*     $NetBSD: ncr53c9xvar.h,v 1.53 2009/09/02 10:34:05 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -443,5 +443,6 @@
 void   ncr53c9x_reset(struct ncr53c9x_softc *);
 int    ncr53c9x_intr(void *);
 void   ncr53c9x_init(struct ncr53c9x_softc *, int);
+void   ncr53c9x_abort(struct ncr53c9x_softc *, struct ncr53c9x_ecb *);
 
 #endif /* _DEV_IC_NCR53C9XVAR_H_ */



Home | Main Index | Thread Index | Old Index