Module Name:    src
Committed By:   jdolecek
Date:           Mon May 25 18:29:25 UTC 2020

Modified Files:
        src/sys/dev/ata: ata.c atavar.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 src/sys/dev/ata/ata.c
cvs rdiff -u -r1.107 -r1.108 src/sys/dev/ata/atavar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ata/ata.c
diff -u src/sys/dev/ata/ata.c:1.157 src/sys/dev/ata/ata.c:1.158
--- src/sys/dev/ata/ata.c:1.157	Sat May  2 19:09:56 2020
+++ src/sys/dev/ata/ata.c	Mon May 25 18:29:25 2020
@@ -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 @@ int atadebug_mask = ATADEBUG_MASK;
 #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 @@ ata_print_modes(struct ata_channel *chp)
  *
  * 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;

Index: src/sys/dev/ata/atavar.h
diff -u src/sys/dev/ata/atavar.h:1.107 src/sys/dev/ata/atavar.h:1.108
--- src/sys/dev/ata/atavar.h:1.107	Sat May  2 19:09:56 2020
+++ src/sys/dev/ata/atavar.h	Mon May 25 18:29:25 2020
@@ -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 @@ int	ata_addref(struct ata_channel *);
 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

Reply via email to