Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata make ata_downgrade_mode() static, it's not used ...



details:   https://anonhg.NetBSD.org/src/rev/6ae981e8fc6a
branches:  trunk
changeset: 933485:6ae981e8fc6a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon May 25 18:29:25 2020 +0000

description:
make ata_downgrade_mode() static, it's not used anywhere else

diffstat:

 sys/dev/ata/ata.c    |  10 +++++++---
 sys/dev/ata/atavar.h |   5 +----
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r 1c6720a0f70b -r 6ae981e8fc6a sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Mon May 25 17:56:19 2020 +0000
+++ b/sys/dev/ata/ata.c Mon May 25 18:29:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ata.c,v 1.157 2020/05/02 19:09:56 thorpej Exp $        */
+/*     $NetBSD: ata.c,v 1.158 2020/05/25 18:29:25 jdolecek Exp $       */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.157 2020/05/02 19:09:56 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.158 2020/05/25 18:29:25 jdolecek Exp $");
 
 #include "opt_ata.h"
 
@@ -84,6 +84,10 @@
 #define ATADEBUG_PRINT(args, level)
 #endif
 
+#if NATA_DMA
+static int     ata_downgrade_mode(struct ata_drive_datas *, int);
+#endif
+
 static ONCE_DECL(ata_init_ctrl);
 static struct pool ata_xfer_pool;
 
@@ -1755,7 +1759,7 @@
  *
  * MUST BE CALLED AT splbio()!
  */
-int
+static int
 ata_downgrade_mode(struct ata_drive_datas *drvp, int flags)
 {
        struct ata_channel *chp = drvp->chnl_softc;
diff -r 1c6720a0f70b -r 6ae981e8fc6a sys/dev/ata/atavar.h
--- a/sys/dev/ata/atavar.h      Mon May 25 17:56:19 2020 +0000
+++ b/sys/dev/ata/atavar.h      Mon May 25 18:29:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atavar.h,v 1.107 2020/05/02 19:09:56 thorpej Exp $     */
+/*     $NetBSD: atavar.h,v 1.108 2020/05/25 18:29:25 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -559,9 +559,6 @@
 void   ata_delref(struct ata_channel *);
 void   atastart(struct ata_channel *);
 void   ata_print_modes(struct ata_channel *);
-#if NATA_DMA
-int    ata_downgrade_mode(struct ata_drive_datas *, int);
-#endif
 void   ata_probe_caps(struct ata_drive_datas *);
 
 #if NATA_DMA



Home | Main Index | Thread Index | Old Index