[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210918050430.3671227-9-mcgrof@kernel.org>
Date: Fri, 17 Sep 2021 22:04:26 -0700
From: Luis Chamberlain <mcgrof@...nel.org>
To: tj@...nel.org, gregkh@...uxfoundation.org,
akpm@...ux-foundation.org, minchan@...nel.org, jeyu@...nel.org,
shuah@...nel.org
Cc: rdunlap@...radead.org, rafael@...nel.org, masahiroy@...nel.org,
ndesaulniers@...gle.com, yzaikin@...gle.com, nathan@...nel.org,
ojeda@...nel.org, penguin-kernel@...ove.SAKURA.ne.jp,
vitor@...saru.org, elver@...gle.com, jarkko@...nel.org,
glider@...gle.com, rf@...nsource.cirrus.com,
stephen@...workplumber.org, David.Laight@...LAB.COM,
bvanassche@....org, jolsa@...nel.org,
andriy.shevchenko@...ux.intel.com, trishalfonso@...gle.com,
andreyknvl@...il.com, jikos@...nel.org, mbenes@...e.com,
ngupta@...are.org, sergey.senozhatsky.work@...il.com,
mcgrof@...nel.org, reinette.chatre@...el.com, fenghua.yu@...el.com,
bp@...en8.de, x86@...nel.org, hpa@...or.com,
lizefan.x@...edance.com, hannes@...xchg.org,
daniel.vetter@...ll.ch, bhelgaas@...gle.com, kw@...ux.com,
dan.j.williams@...el.com, senozhatsky@...omium.org, hch@....de,
joe@...ches.com, hkallweit1@...il.com, axboe@...nel.dk,
jpoimboe@...hat.com, tglx@...utronix.de, keescook@...omium.org,
rostedt@...dmis.org, peterz@...radead.org,
linux-spdx@...r.kernel.org, linux-doc@...r.kernel.org,
linux-block@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kselftest@...r.kernel.org, cgroups@...r.kernel.org,
linux-kernel@...r.kernel.org, copyleft-next@...ts.fedorahosted.org
Subject: [PATCH v7 08/12] fs/sysfs/dir.c: replace S_IRWXU|S_IRUGO|S_IXUGO with 0755 sysfs_create_dir_ns()
If one ends up expanding on this line checkpatch will complain that the
combination S_IRWXU|S_IRUGO|S_IXUGO should just be replaced with the
octal 0755. Do that.
This makes no functional changes.
Signed-off-by: Luis Chamberlain <mcgrof@...nel.org>
---
fs/sysfs/dir.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
index 59dffd5ca517..b6b6796e1616 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
@@ -56,8 +56,7 @@ int sysfs_create_dir_ns(struct kobject *kobj, const void *ns)
kobject_get_ownership(kobj, &uid, &gid);
- kn = kernfs_create_dir_ns(parent, kobject_name(kobj),
- S_IRWXU | S_IRUGO | S_IXUGO, uid, gid,
+ kn = kernfs_create_dir_ns(parent, kobject_name(kobj), 0755, uid, gid,
kobj, ns);
if (IS_ERR(kn)) {
if (PTR_ERR(kn) == -EEXIST)
--
2.30.2
Powered by blists - more mailing lists