All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: gasket: using octal permissions instead of symbolic permissions
@ 2020-03-31 23:09 Gokce Kuler
  2020-04-01  3:01 ` [Outreachy kernel] " Stefano Brivio
  2020-04-01  5:56 ` Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: Gokce Kuler @ 2020-03-31 23:09 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh, rspringer, toddpoynor, benchan

Since octal permissions is preffered to symbolic permissions,
octal permissions is used.Problem found checkpatch.pl.

Signed-off-by: Gokce Kuler <gokcekuler@gmail.com>
---
 drivers/staging/gasket/gasket_sysfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/gasket/gasket_sysfs.h b/drivers/staging/gasket/gasket_sysfs.h
index 1d0eed6..28dc422 100644
--- a/drivers/staging/gasket/gasket_sysfs.h
+++ b/drivers/staging/gasket/gasket_sysfs.h
@@ -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.7.4



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

end of thread, other threads:[~2020-04-02 13:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-31 23:09 [PATCH] staging: gasket: using octal permissions instead of symbolic permissions Gokce Kuler
2020-04-01  3:01 ` [Outreachy kernel] " Stefano Brivio
2020-04-01  5:56 ` Greg KH
2020-04-02 12:20   ` Gokce Kuler
2020-04-02 12:43     ` [Outreachy kernel] " Julia Lawall
2020-04-02 13:18       ` Gokce Kuler
2020-04-02 13:30         ` Greg KH
2020-04-02 13:54         ` Julia Lawall

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.