Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata mark satapmp_rescan() static, it's not to be use...



details:   https://anonhg.NetBSD.org/src/rev/80dec689e168
branches:  trunk
changeset: 365057:80dec689e168
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jul 29 14:11:30 2018 +0000

description:
mark satapmp_rescan() static, it's not to be used outside satapmp_subr.c

diffstat:

 sys/dev/ata/satapmp_subr.c |  6 +++---
 sys/dev/ata/satapmpvar.h   |  3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 671c61f44a33 -r 80dec689e168 sys/dev/ata/satapmp_subr.c
--- a/sys/dev/ata/satapmp_subr.c        Sun Jul 29 08:02:24 2018 +0000
+++ b/sys/dev/ata/satapmp_subr.c        Sun Jul 29 14:11:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: satapmp_subr.c,v 1.13 2017/10/07 16:05:32 jdolecek Exp $       */
+/*     $NetBSD: satapmp_subr.c,v 1.14 2018/07/29 14:11:30 jdolecek Exp $       */
 
 /*
  * Copyright (c) 2012 Manuel Bouyer.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: satapmp_subr.c,v 1.13 2017/10/07 16:05:32 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: satapmp_subr.c,v 1.14 2018/07/29 14:11:30 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -239,7 +239,7 @@
        return(sstatus & SStatus_DET_mask);
 }
 
-void
+static void __noinline
 satapmp_rescan(struct ata_channel *chp, struct ata_xfer *xfer)
 {
        int i;
diff -r 671c61f44a33 -r 80dec689e168 sys/dev/ata/satapmpvar.h
--- a/sys/dev/ata/satapmpvar.h  Sun Jul 29 08:02:24 2018 +0000
+++ b/sys/dev/ata/satapmpvar.h  Sun Jul 29 14:11:30 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: satapmpvar.h,v 1.4 2017/10/07 16:05:32 jdolecek Exp $  */
+/*     $NetBSD: satapmpvar.h,v 1.5 2018/07/29 14:11:30 jdolecek Exp $  */
 
 
 /*
@@ -29,7 +29,6 @@
 #define        _DEV_ATA_SATAPMPVAR_H_
 
 void satapmp_attach(struct ata_channel *);
-void satapmp_rescan(struct ata_channel *, struct ata_xfer *);
 
 #endif /* _DEV_ATA_SATAPMPVAR_H_ */
 



Home | Main Index | Thread Index | Old Index