From: Chaitanya Kulkarni Date: Mon, 27 Aug 2018 22:31:29 +0000 (-0700) Subject: nvme-cli: mark functions static X-Git-Tag: v1.7~82 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8542bd6b9f500d3b794fdd2ec7d7faa9ab5a06f4;p=users%2Fsagi%2Fnvme-cli.git nvme-cli: mark functions static Mark nvme_property() and get_nvme_subsystem_info() static. Signed-off-by: Chaitanya Kulkarni --- 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];