All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] Staging: gasket: Replaces symbolic permissions
@ 2019-02-23  5:52 Bhanusree Pola
  2019-02-23  7:56 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Bhanusree Pola @ 2019-02-23  5:52 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: Greg Kroah-Hartman, Bhanusree Pola

Replaces Symbolic Permissions with Octal Permission which solves the
checkpatch.pl warning:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
---

v2: Subject line modified

 drivers/staging/gasket/gasket_sysfs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/gasket/gasket_sysfs.h b/drivers/staging/gasket/gasket_sysfs.h
index 151e8edd28ea..60590ea4b760 100644
--- a/drivers/staging/gasket/gasket_sysfs.h
+++ b/drivers/staging/gasket/gasket_sysfs.h
@@ -40,7 +40,7 @@
  */
 #define GASKET_END_OF_ATTR_ARRAY                                               \
 	{                                                                      \
-		.attr = __ATTR(GASKET_ARRAY_END_TOKEN, S_IRUGO, NULL, NULL),   \
+		.attr = __ATTR(GASKET_ARRAY_END_TOKEN, 0444, NULL, NULL),   \
 		.data.attr_type = 0,                                           \
 	}
 
@@ -75,7 +75,7 @@ struct gasket_sysfs_attribute {
 
 #define GASKET_SYSFS_RO(_name, _show_function, _attr_type)                     \
 	{                                                                      \
-		.attr = __ATTR(_name, S_IRUGO, _show_function, NULL),          \
+		.attr = __ATTR(_name, 0444, _show_function, NULL),          \
 		.data.attr_type = _attr_type                                   \
 	}
 
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-23  9:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23  5:52 [PATCH v2] Staging: gasket: Replaces symbolic permissions Bhanusree Pola
2019-02-23  7:56 ` Greg Kroah-Hartman
2019-02-23  8:42   ` [Outreachy kernel] " Greg Kroah-Hartman
2019-02-23  9:34     ` Bhanusree Mahesh
2019-02-23  9:51       ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.