Commit b44fe760 authored by Fabian Frederick's avatar Fabian Frederick Committed by Dan Williams
Browse files

libnvdimm, namespace: use octal for permissions

According to commit f90774e1

("checkpatch: look for symbolic permissions and suggest octal instead")

Signed-off-by: default avatarFabian Frederick <>
Signed-off-by: default avatarDan Williams <>
parent 0a3f27b9
......@@ -1132,7 +1132,7 @@ static ssize_t size_show(struct device *dev,
return sprintf(buf, "%llu\n", (unsigned long long)
static DEVICE_ATTR(size, S_IRUGO, size_show, size_store);
static DEVICE_ATTR(size, 0444, size_show, size_store);
static u8 *namespace_to_uuid(struct device *dev)
......@@ -1456,7 +1456,7 @@ static umode_t namespace_visible(struct kobject *kobj,
if (is_namespace_pmem(dev) || is_namespace_blk(dev)) {
if (a == &dev_attr_size.attr)
return S_IWUSR | S_IRUGO;
return 0644;
if (is_namespace_pmem(dev) && a == &dev_attr_sector_size.attr)
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment