Skip to contentSkip to conversation

staging: gasket: replace symbolic permissions

PATCH In review Payal Kshirsagar 2 participants 5 messages Mar 18, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: gasket: replace symbolic permissions

Symbolic permissions 'S_IRUGO' are replaced by octal permissions '0444' in file
drivers/staging/gasket/gasket_sysfs.h at line no 43 and 78.

---
 drivers/staging/gasket/gasket_sysfs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/gasket/gasket_sysfs.h +2 -2
index 151e8ed..60590ea 100644
@@ -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                                   \
 	}
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 23 lines · Payal Kshirsagar

Symbolic permissions 'S_IRUGO' are replaced by octal permissions '0444' in file
drivers/staging/gasket/gasket_sysfs.h at line no 43 and 78.

---
 drivers/staging/gasket/gasket_sysfs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/gasket/gasket_sysfs.h +1 -1
index 151e8ed..60590ea 100644
@@ -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,                                           \
 	}
 

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 81

Quoted 8 lines
drivers/staging/gasket/gasket_sysfs.h +1 -1
@@ -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                                   \
 	}
 

This patch does not apply at all, as others have made changes in this portion of the kernel. Be sure you are working against the latest staging tree, it is staging.git on git.kernel.org and use the staging-testing branch.

thanks,

greg k-h

#2 lore raw
Quoted 44 lines · Greg KH

Review

Quoted 10 lines · Payal Kshirsagar

Symbolic permissions 'S_IRUGO' are replaced by octal permissions '0444' in file
drivers/staging/gasket/gasket_sysfs.h at line no 43 and 78.

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

b/drivers/staging/gasket/gasket_sysfs.h

drivers/staging/gasket/gasket_sysfs.h line 41

Quoted 6 lines

index 151e8ed..60590ea 100644

drivers/staging/gasket/gasket_sysfs.h +0 -0
@@ -40,7 +40,7 @@
  */
 #define GASKET_END_OF_ATTR_ARRAY
       \

drivers/staging/gasket/gasket_sysfs.h line 42

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
      {
    \

drivers/staging/gasket/gasket_sysfs.h line 43

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -1
-             .attr = __ATTR(GASKET_ARRAY_END_TOKEN, S_IRUGO, NULL,

NULL), \

drivers/staging/gasket/gasket_sysfs.h line 43

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +1 -0
+             .attr = __ATTR(GASKET_ARRAY_END_TOKEN, 0444, NULL, NULL),

\

drivers/staging/gasket/gasket_sysfs.h line 44

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
              .data.attr_type = 0,
     \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 76

Quoted 5 lines
drivers/staging/gasket/gasket_sysfs.h +0 -0
      }
 
@@ -75,7 +75,7 @@ struct gasket_sysfs_attribute {
 
 #define GASKET_SYSFS_RO(_name, _show_function, _attr_type)
       \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 77

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
      {
    \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 78

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -1
-             .attr = __ATTR(_name, S_IRUGO, _show_function, NULL),
    \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 78

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +1 -0
+             .attr = __ATTR(_name, 0444, _show_function, NULL),

\

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 79

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
              .data.attr_type = _attr_type
     \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 81

Quoted 2 lines
drivers/staging/gasket/gasket_sysfs.h +0 -0
      }
 
Quoted 9 lines

This patch does not apply at all, as others have made changes in this portion of the kernel. Be sure you are working against the latest staging tree, it is staging.git on git.kernel.org and use the staging-testing branch.

thanks,

greg k-h

How do I update my staging tree ?

Thanks in advance!
payal

#3 lore raw
Quoted 51 lines · Payal Kshirsagar
Quoted 49 lines · Greg KH

Review

Quoted 10 lines · Payal Kshirsagar

Symbolic permissions 'S_IRUGO' are replaced by octal permissions '0444' in file
drivers/staging/gasket/gasket_sysfs.h at line no 43 and 78.

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

b/drivers/staging/gasket/gasket_sysfs.h

drivers/staging/gasket/gasket_sysfs.h line 41

Quoted 6 lines

index 151e8ed..60590ea 100644

drivers/staging/gasket/gasket_sysfs.h +0 -0
@@ -40,7 +40,7 @@
  */
 #define GASKET_END_OF_ATTR_ARRAY
       \

drivers/staging/gasket/gasket_sysfs.h line 42

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
      {
    \

drivers/staging/gasket/gasket_sysfs.h line 43

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -1
-             .attr = __ATTR(GASKET_ARRAY_END_TOKEN, S_IRUGO, NULL,

NULL), \

drivers/staging/gasket/gasket_sysfs.h line 43

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +1 -0
+             .attr = __ATTR(GASKET_ARRAY_END_TOKEN, 0444, NULL, NULL),

\

drivers/staging/gasket/gasket_sysfs.h line 44

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
              .data.attr_type = 0,
     \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 76

Quoted 5 lines
drivers/staging/gasket/gasket_sysfs.h +0 -0
      }
 
@@ -75,7 +75,7 @@ struct gasket_sysfs_attribute {
 
 #define GASKET_SYSFS_RO(_name, _show_function, _attr_type)
       \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 77

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
      {
    \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 78

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -1
-             .attr = __ATTR(_name, S_IRUGO, _show_function, NULL),
    \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 78

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +1 -0
+             .attr = __ATTR(_name, 0444, _show_function, NULL),

\

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 79

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
              .data.attr_type = _attr_type
     \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 81

Quoted 2 lines
drivers/staging/gasket/gasket_sysfs.h +0 -0
      }
 

This patch does not apply at all, as others have made changes in this portion of the kernel. Be sure you are working against the latest staging tree, it is staging.git on git.kernel.org and use the staging-testing branch.

Quoted 6 lines
Quoted 4 lines

thanks,

greg k-h

How do I update my staging tree ?

There are lots of tutorials for how to update your local branches based on an "upstream" tree/branch. I suggest following them, and if you have any specific questions, please let us know.

thanks,

greg k-h

#4 lore raw
Quoted 61 lines · Greg KH
Quoted 4 lines · Payal Kshirsagar
Quoted 2 lines · Greg KH
Quoted 1 line · Payal Kshirsagar

Symbolic permissions 'S_IRUGO' are replaced by octal permissions

'0444'

Quoted 17 lines
Quoted 17 lines

Review

Quoted 9 lines

in file
drivers/staging/gasket/gasket_sysfs.h at line no 43 and 78.

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

b/drivers/staging/gasket/gasket_sysfs.h

drivers/staging/gasket/gasket_sysfs.h line 41

Quoted 6 lines

index 151e8ed..60590ea 100644

drivers/staging/gasket/gasket_sysfs.h +0 -0
@@ -40,7 +40,7 @@
  */
 #define GASKET_END_OF_ATTR_ARRAY
       \
Quoted 5 lines
Quoted 5 lines

drivers/staging/gasket/gasket_sysfs.h line 42

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
      {
    \

drivers/staging/gasket/gasket_sysfs.h line 43

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -1
-             .attr = __ATTR(GASKET_ARRAY_END_TOKEN, S_IRUGO, NULL,

NULL), \

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +1 -0
+             .attr = __ATTR(GASKET_ARRAY_END_TOKEN, 0444, NULL,

NULL),

Quoted 25 lines
Quoted 25 lines

\

drivers/staging/gasket/gasket_sysfs.h line 44

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
              .data.attr_type = 0,
     \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 76

Quoted 5 lines
drivers/staging/gasket/gasket_sysfs.h +0 -0
      }
 
@@ -75,7 +75,7 @@ struct gasket_sysfs_attribute {
 
 #define GASKET_SYSFS_RO(_name, _show_function, _attr_type)
       \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 77

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
      {
    \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 78

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -1
-             .attr = __ATTR(_name, S_IRUGO, _show_function, NULL),
    \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 78

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +1 -0
+             .attr = __ATTR(_name, 0444, _show_function, NULL),

\

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 79

Quoted 1 line
drivers/staging/gasket/gasket_sysfs.h +0 -0
              .data.attr_type = _attr_type
     \

drivers/staging/gasket/gasket_sysfs.h struct gasket_sysfs_attribute { · line 81

Quoted 2 lines
drivers/staging/gasket/gasket_sysfs.h +0 -0
      }
 

This patch does not apply at all, as others have made changes in this portion of the kernel. Be sure you are working against the latest staging tree, it is staging.git on git.kernel.org and use the staging-testing branch.

Quoted 6 lines
Quoted 4 lines

thanks,

greg k-h

How do I update my staging tree ?

Quoted 8 lines

There are lots of tutorials for how to update your local branches based on an "upstream" tree/branch. I suggest following them, and if you have any specific questions, please let us know.

thanks,

greg k-h

Okay thank you ,

Payal

Quoted 1 line