diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index ad99dd76dcd2903ab5464143a55aee820303067f..9ee919422669cea6c06aa328ff0c05ed946d4665 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2216,7 +2216,7 @@ static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id) return ret; } -static int nvme_get_log_ext(struct nvme_ctrl *ctrl, struct nvme_ns *ns, +int nvme_get_log_ext(struct nvme_ctrl *ctrl, struct nvme_ns *ns, u8 log_page, void *log, size_t size, size_t offset) { diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 741e3c79bbe91a9e088c54fb1984c977a1612034..c393e4b56f39678e5b268e3862058644172b7120 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -429,6 +429,9 @@ int nvme_reset_ctrl_sync(struct nvme_ctrl *ctrl); int nvme_delete_ctrl(struct nvme_ctrl *ctrl); int nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl); +int nvme_get_log_ext(struct nvme_ctrl *ctrl, struct nvme_ns *ns, + u8 log_page, void *log, size_t size, size_t offset); + extern const struct attribute_group nvme_ns_id_attr_group; extern const struct block_device_operations nvme_ns_head_ops;