projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a3f27b
)
libnvdimm, namespace: use octal for permissions
author
Fabian Frederick
<fabf@skynet.be>
Sun, 4 Dec 2016 18:54:08 +0000
(10:54 -0800)
committer
Dan Williams
<dan.j.williams@intel.com>
Sun, 4 Dec 2016 18:54:08 +0000
(10:54 -0800)
According to commit
f90774e1fd27
("checkpatch: look for symbolic permissions and suggest octal instead")
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvdimm/namespace_devs.c
b/drivers/nvdimm/namespace_devs.c
index 61636d135105c08bf5e0affef802a21d0a1407c5..8817f8a0cf38dcbb168d4a08fac56f5ec5f5aa9e 100644
(file)
--- a/
drivers/nvdimm/namespace_devs.c
+++ b/
drivers/nvdimm/namespace_devs.c
@@
-1132,7
+1132,7
@@
static ssize_t size_show(struct device *dev,
return sprintf(buf, "%llu\n", (unsigned long long)
nvdimm_namespace_capacity(to_ndns(dev)));
}
-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;