[PATCH 09/35] nvme_get_ctrl_attr(): constify "path" argument
mwilck at suse.com
mwilck at suse.com
Tue Jan 26 15:32:58 EST 2021
From: Martin Wilck <mwilck at suse.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
nvme-topology.c | 2 +-
nvme.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nvme-topology.c b/nvme-topology.c
index 71371c5..f62446b 100644
--- a/nvme-topology.c
+++ b/nvme-topology.c
@@ -45,7 +45,7 @@ close_fd:
return subsysnqn;
}
-char *nvme_get_ctrl_attr(char *path, const char *attr)
+char *nvme_get_ctrl_attr(const char *path, const char *attr)
{
char *attrpath, *value;
ssize_t ret;
diff --git a/nvme.h b/nvme.h
index 3fb1060..382e625 100644
--- a/nvme.h
+++ b/nvme.h
@@ -109,7 +109,7 @@ int scan_subsystems(struct nvme_topology *t, const char *subsysnqn,
__u32 ns_instance, char *dev_dir);
void free_topology(struct nvme_topology *t);
char *get_nvme_subsnqn(char *path);
-char *nvme_get_ctrl_attr(char *path, const char *attr);
+char *nvme_get_ctrl_attr(const char *path, const char *attr);
void *nvme_alloc(size_t len, bool *huge);
void nvme_free(void *p, bool huge);
--
2.29.2
More information about the Linux-nvme
mailing list