aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-02-08 20:28:18 +0000
committerWarner Losh <imp@FreeBSD.org>2021-02-08 20:29:24 +0000
commitdd2516fc078f15633ad5aedaad6de140cb491f80 (patch)
tree31472306119d31d5656eb7613b38fc9929cadba6 /sys
parent6c34d8ce11cb73e718fc23d85b6fbfab07ee15b4 (diff)
downloadsrc-dd2516fc078f15633ad5aedaad6de140cb491f80.tar.gz
src-dd2516fc078f15633ad5aedaad6de140cb491f80.zip
nvme: Make nvme_ctrlr_hw_reset static
nvme_ctrlr_hw_reset is no longer used outside of nvme_ctrlr.c, so make it static. If we need to change this in the future we can.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/nvme/nvme_ctrlr.c2
-rw-r--r--sys/dev/nvme/nvme_private.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
index c0e6c408ab56..351c6839a6f6 100644
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -403,7 +403,7 @@ nvme_ctrlr_disable_qpairs(struct nvme_controller *ctrlr)
}
}
-int
+static int
nvme_ctrlr_hw_reset(struct nvme_controller *ctrlr)
{
int err;
diff --git a/sys/dev/nvme/nvme_private.h b/sys/dev/nvme/nvme_private.h
index 6c1d293f047d..ee0a909e24ec 100644
--- a/sys/dev/nvme/nvme_private.h
+++ b/sys/dev/nvme/nvme_private.h
@@ -398,7 +398,6 @@ void nvme_completion_poll_cb(void *arg, const struct nvme_completion *cpl);
int nvme_ctrlr_construct(struct nvme_controller *ctrlr, device_t dev);
void nvme_ctrlr_destruct(struct nvme_controller *ctrlr, device_t dev);
void nvme_ctrlr_shutdown(struct nvme_controller *ctrlr);
-int nvme_ctrlr_hw_reset(struct nvme_controller *ctrlr);
void nvme_ctrlr_reset(struct nvme_controller *ctrlr);
/* ctrlr defined as void * to allow use with config_intrhook. */
void nvme_ctrlr_start_config_hook(void *ctrlr_arg);