summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 13:00:28 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-02-01 13:00:28 -0500
commit47fcc0360cfb3fe82e4daddacad3c1cd80b0b75d (patch)
tree6a72f705c4e16643e08152ce7828a23c68c623ae /drivers/nvme
parent5d8515bc232172963a4cef007e97b08c5e4d0533 (diff)
parentc505cbd45f6e9c539d57dd171d95ec7e5e9f9cd0 (diff)
Merge tag 'driver-core-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core updates from Greg KH: "Here is the set of "big" driver core patches for 4.16-rc1. The majority of the work here is in the firmware subsystem, with reworks to try to attempt to make the code easier to handle in the long run, but no functional change. There's also some tree-wide sysfs attribute fixups with lots of acks from the various subsystem maintainers, as well as a handful of other normal fixes and changes. And finally, some license cleanups for the driver core and sysfs code. All have been in linux-next for a while with no reported issues" * tag 'driver-core-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (48 commits) device property: Define type of PROPERTY_ENRTY_*() macros device property: Reuse property_entry_free_data() device property: Move property_entry_free_data() upper firmware: Fix up docs referring to FIRMWARE_IN_KERNEL firmware: Drop FIRMWARE_IN_KERNEL Kconfig option USB: serial: keyspan: Drop firmware Kconfig options sysfs: remove DEBUG defines sysfs: use SPDX identifiers drivers: base: add coredump driver ops sysfs: add attribute specification for /sysfs/devices/.../coredump test_firmware: fix missing unlock on error in config_num_requests_store() test_firmware: make local symbol test_fw_config static sysfs: turn WARN() into pr_warn() firmware: Fix a typo in fallback-mechanisms.rst treewide: Use DEVICE_ATTR_WO treewide: Use DEVICE_ATTR_RO treewide: Use DEVICE_ATTR_RW sysfs.h: Use octal permissions component: add debugfs support bus: simple-pm-bus: convert bool SIMPLE_PM_BUS to tristate ...
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index e8104871cbbf..f431c32774f3 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -2554,14 +2554,14 @@ static ssize_t wwid_show(struct device *dev, struct device_attribute *attr,
2554 serial_len, subsys->serial, model_len, subsys->model, 2554 serial_len, subsys->serial, model_len, subsys->model,
2555 head->ns_id); 2555 head->ns_id);
2556} 2556}
2557static DEVICE_ATTR(wwid, S_IRUGO, wwid_show, NULL); 2557static DEVICE_ATTR_RO(wwid);
2558 2558
2559static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, 2559static ssize_t nguid_show(struct device *dev, struct device_attribute *attr,
2560 char *buf) 2560 char *buf)
2561{ 2561{
2562 return sprintf(buf, "%pU\n", dev_to_ns_head(dev)->ids.nguid); 2562 return sprintf(buf, "%pU\n", dev_to_ns_head(dev)->ids.nguid);
2563} 2563}
2564static DEVICE_ATTR(nguid, S_IRUGO, nguid_show, NULL); 2564static DEVICE_ATTR_RO(nguid);
2565 2565
2566static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, 2566static ssize_t uuid_show(struct device *dev, struct device_attribute *attr,
2567 char *buf) 2567 char *buf)
@@ -2578,21 +2578,21 @@ static ssize_t uuid_show(struct device *dev, struct device_attribute *attr,
2578 } 2578 }
2579 return sprintf(buf, "%pU\n", &ids->uuid); 2579 return sprintf(buf, "%pU\n", &ids->uuid);
2580} 2580}
2581static DEVICE_ATTR(uuid, S_IRUGO, uuid_show, NULL); 2581static DEVICE_ATTR_RO(uuid);
2582 2582
2583static ssize_t eui_show(struct device *dev, struct device_attribute *attr, 2583static ssize_t eui_show(struct device *dev, struct device_attribute *attr,
2584 char *buf) 2584 char *buf)
2585{ 2585{
2586 return sprintf(buf, "%8ph\n", dev_to_ns_head(dev)->ids.eui64); 2586 return sprintf(buf, "%8ph\n", dev_to_ns_head(dev)->ids.eui64);
2587} 2587}
2588static DEVICE_ATTR(eui, S_IRUGO, eui_show, NULL); 2588static DEVICE_ATTR_RO(eui);
2589 2589
2590static ssize_t nsid_show(struct device *dev, struct device_attribute *attr, 2590static ssize_t nsid_show(struct device *dev, struct device_attribute *attr,
2591 char *buf) 2591 char *buf)
2592{ 2592{
2593 return sprintf(buf, "%d\n", dev_to_ns_head(dev)->ns_id); 2593 return sprintf(buf, "%d\n", dev_to_ns_head(dev)->ns_id);
2594} 2594}
2595static DEVICE_ATTR(nsid, S_IRUGO, nsid_show, NULL); 2595static DEVICE_ATTR_RO(nsid);
2596 2596
2597static struct attribute *nvme_ns_id_attrs[] = { 2597static struct attribute *nvme_ns_id_attrs[] = {
2598 &dev_attr_wwid.attr, 2598 &dev_attr_wwid.attr,