* [PATCH 1/1] nvmet: move device_uuid configfs attr definition to suitable place
@ 2018-03-20 12:20 Max Gurtovoy
2018-03-20 22:11 ` Keith Busch
0 siblings, 1 reply; 2+ messages in thread
From: Max Gurtovoy @ 2018-03-20 12:20 UTC (permalink / raw)
Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
---
drivers/nvme/target/configfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/target/configfs.c
index e6b2d2a..7780a72 100644
--- a/drivers/nvme/target/configfs.c
+++ b/drivers/nvme/target/configfs.c
@@ -333,13 +333,13 @@ static ssize_t nvmet_ns_device_uuid_store(struct config_item *item,
return ret ? ret : count;
}
+CONFIGFS_ATTR(nvmet_ns_, device_uuid);
+
static ssize_t nvmet_ns_device_nguid_show(struct config_item *item, char *page)
{
return sprintf(page, "%pUb\n", &to_nvmet_ns(item)->nguid);
}
-CONFIGFS_ATTR(nvmet_ns_, device_uuid);
-
static ssize_t nvmet_ns_device_nguid_store(struct config_item *item,
const char *page, size_t count)
{
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] nvmet: move device_uuid configfs attr definition to suitable place
2018-03-20 12:20 [PATCH 1/1] nvmet: move device_uuid configfs attr definition to suitable place Max Gurtovoy
@ 2018-03-20 22:11 ` Keith Busch
0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2018-03-20 22:11 UTC (permalink / raw)
Applied for nvme-4.17.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-20 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20 12:20 [PATCH 1/1] nvmet: move device_uuid configfs attr definition to suitable place Max Gurtovoy
2018-03-20 22:11 ` Keith Busch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.