Skip to contentSkip to conversation

nvmet: move device_uuid configfs attr definition to suitable place

PATCH New Max Gurtovoy 2 participants 2 messages Mar 20, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmet: move device_uuid configfs attr definition to suitable place

Signed-off-by Max Gurtovoy <maxg at mellanox.com>
---
 drivers/nvme/target/configfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/target/configfs.c +2 -2
index e6b2d2a..7780a72 100644
@@ -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)
 {
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 nvmet: move device_uuid configfs attr definition to suitable place

Applied for nvme-4.17.