diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2018-03-20 15:20:41 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-26 17:53:43 +0300 |
commit | f871749a9fa40a1c2d09aaf66776e32a0a638881 (patch) | |
tree | 7752cb1631859439fb0b72f44683445f57092aa5 /drivers | |
parent | b435ecea2a4d0b5cd5be2c5497c3461435f3f3a7 (diff) | |
download | linux-f871749a9fa40a1c2d09aaf66776e32a0a638881.tar.xz |
nvmet: move device_uuid configfs attr definition to suitable place
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/target/configfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/target/configfs.c index e6b2d2af81b6..7780a7210acb 100644 --- a/drivers/nvme/target/configfs.c +++ b/drivers/nvme/target/configfs.c @@ -333,13 +333,13 @@ out_unlock: 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) { |