From 8542bd6b9f500d3b794fdd2ec7d7faa9ab5a06f4 Mon Sep 17 00:00:00 2001 From: Chaitanya Kulkarni Date: Mon, 27 Aug 2018 15:31:29 -0700 Subject: [PATCH] nvme-cli: mark functions static Mark nvme_property() and get_nvme_subsystem_info() static. Signed-off-by: Chaitanya Kulkarni --- nvme-ioctl.c | 2 +- nvme.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme-ioctl.c b/nvme-ioctl.c index d63c863d..f75728dd 100644 --- a/nvme-ioctl.c +++ b/nvme-ioctl.c @@ -525,7 +525,7 @@ int nvme_set_feature(int fd, __u32 nsid, __u8 fid, __u32 value, __u32 cdw12, cdw12, data_len, data, result); } -int nvme_property(int fd, __u8 fctype, __le32 off, __le64 *value, __u8 attrib) +static int nvme_property(int fd, __u8 fctype, __le32 off, __le64 *value, __u8 attrib) { int err; struct nvme_admin_cmd cmd = { diff --git a/nvme.c b/nvme.c index 19814447..770e5a1d 100644 --- a/nvme.c +++ b/nvme.c @@ -1394,7 +1394,7 @@ static void free_ctrl_list_item(struct ctrl_list_item *ctrls) free(ctrls->address); } -int get_nvme_subsystem_info(char *name, char *path, +static int get_nvme_subsystem_info(char *name, char *path, struct subsys_list_item *item) { char ctrl_path[512]; -- 2.50.1