make ata_downgrade_mode() static, it's not used anywhere else
This commit is contained in:
parent
a500e081bc
commit
4a29b12536
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user