Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1671976 > unrolled thread
| Started by | frowand.list@gmail.com |
|---|---|
| First post | 2017-06-21 21:30 +0200 |
| Last post | 2017-06-22 18:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] of: be consistent in form of file mode frowand.list@gmail.com - 2017-06-21 21:30 +0200
Re: [PATCH] of: be consistent in form of file mode Rob Herring <robh@kernel.org> - 2017-06-22 18:20 +0200
| From | frowand.list@gmail.com |
|---|---|
| Date | 2017-06-21 21:30 +0200 |
| Subject | [PATCH] of: be consistent in form of file mode |
| Message-ID | <tUTua-26o-33@gated-at.bofh.it> |
From: Frank Rowand <frank.rowand@sony.com> checkpatch whined about using S_IRUGO instead of octal equivalent when adding phandle sysfs code, so used octal in that pending patch. Change other instances of the S_* constants in the same file to the octal form. Signed-off-by: Frank Rowand <frank.rowand@sony.com> --- drivers/of/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 28d5f53bc631..974d51269a02 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -155,7 +155,7 @@ int __of_add_property_sysfs(struct device_node *np, struct property *pp) sysfs_bin_attr_init(&pp->attr); pp->attr.attr.name = safe_name(&np->kobj, pp->name); - pp->attr.attr.mode = secure ? S_IRUSR : S_IRUGO; + pp->attr.attr.mode = secure ? 0400 : 0444; pp->attr.size = secure ? 0 : pp->length; pp->attr.read = of_node_property_read; -- Frank Rowand <frank.rowand@sony.com>
[toc] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2017-06-22 18:20 +0200 |
| Message-ID | <tVcZR-77P-23@gated-at.bofh.it> |
| In reply to | #1671976 |
On Wed, Jun 21, 2017 at 12:20:03PM -0700, frowand.list@gmail.com wrote: > From: Frank Rowand <frank.rowand@sony.com> > > checkpatch whined about using S_IRUGO instead of octal equivalent > when adding phandle sysfs code, so used octal in that pending patch. > Change other instances of the S_* constants in the same file to > the octal form. > > Signed-off-by: Frank Rowand <frank.rowand@sony.com> > --- > drivers/of/base.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web