From: Christoph Hellwig Date: Mon, 13 Mar 2017 23:10:53 +0000 (-0600) Subject: remove nvme_intel_smart_log X-Git-Tag: v1.2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7015ba5393358846a3d3da1d8ff011acaff435e0;p=users%2Fsagi%2Fnvme-cli.git remove nvme_intel_smart_log and just inline it into the only caller. Signed-off-by: Christoph Hellwig --- diff --git a/intel-nvme.c b/intel-nvme.c index dc134750..34461155 100644 --- a/intel-nvme.c +++ b/intel-nvme.c @@ -123,7 +123,8 @@ static int get_additional_smart_log(int argc, char **argv, struct command *cmd, fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg)); - err = nvme_intel_smart_log(fd, cfg.namespace_id, &smart_log); + err = nvme_get_log(fd, cfg.namespace_id, 0xca, sizeof(smart_log), + &smart_log); if (!err) { if (!cfg.raw_binary) show_intel_smart_log(&smart_log, cfg.namespace_id, devicename); diff --git a/nvme-ioctl.c b/nvme-ioctl.c index b74cdc8e..a22399ab 100644 --- a/nvme-ioctl.c +++ b/nvme-ioctl.c @@ -397,13 +397,6 @@ int nvme_smart_log(int fd, __u32 nsid, struct nvme_smart_log *smart_log) return nvme_get_log(fd, nsid, NVME_LOG_SMART, sizeof(*smart_log), smart_log); } -int nvme_intel_smart_log(int fd, __u32 nsid, - struct nvme_additional_smart_log *intel_smart_log) -{ - return nvme_get_log(fd, nsid, 0xca, sizeof(*intel_smart_log), - intel_smart_log); -} - int nvme_discovery_log(int fd, struct nvmf_disc_rsp_page_hdr *log, __u32 size) { return nvme_get_log(fd, 0, NVME_LOG_DISC, size, log); diff --git a/nvme-ioctl.h b/nvme-ioctl.h index 434b29e5..3beddf8e 100644 --- a/nvme-ioctl.h +++ b/nvme-ioctl.h @@ -83,8 +83,6 @@ int nvme_fw_log(int fd, struct nvme_firmware_log_page *fw_log); int nvme_error_log(int fd, __u32 nsid, int entries, struct nvme_error_log_page *err_log); int nvme_smart_log(int fd, __u32 nsid, struct nvme_smart_log *smart_log); -int nvme_intel_smart_log(int fd, __u32 nsid, - struct nvme_additional_smart_log *intel_smart_log); int nvme_discovery_log(int fd, struct nvmf_disc_rsp_page_hdr *log, __u32 size); int nvme_feature(int fd, __u8 opcode, __u32 nsid, __u32 cdw10,