Skip to contentSkip to conversation

Staging: speakup: Replace symbolic permissions with octal permissions

PATCH In review Shreeya Patel 2 participants 3 messages Oct 13, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: speakup: Replace symbolic permissions with octal permissions

Resolve following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

---
 drivers/staging/speakup/speakup_bns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/speakup_bns.c +1 -1
index 60bcf0d..402b0fb 100644
@@ -120,7 +120,7 @@ static struct spk_synth synth_bns = {
 };
 
 module_param_named(ser, synth_bns.ser, int, 0444);
-module_param_named(dev, synth_bns.dev_name, charp, S_IRUGO);
+module_param_named(dev, synth_bns.dev_name, charp, 0444);
 module_param_named(start, synth_bns.startup, short, 0444);
 
 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Shreeya Patel

Resolve following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

---
 drivers/staging/speakup/speakup_bns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/speakup_bns.c +0 -0
index 60bcf0d..402b0fb 100644

drivers/staging/speakup/speakup_bns.c static struct spk_synth synth_bns = { · line 123

Quoted 5 lines
drivers/staging/speakup/speakup_bns.c +1 -1
@@ -120,7 +120,7 @@ static struct spk_synth synth_bns = {
 };
 
 module_param_named(ser, synth_bns.ser, int, 0444);
-module_param_named(dev, synth_bns.dev_name, charp, S_IRUGO);
+module_param_named(dev, synth_bns.dev_name, charp, 0444);

This change is already made. You need to update your staging tree.

julia

Quoted 13 lines
drivers/staging/speakup/speakup_bns.c +0 -1
 module_param_named(start, synth_bns.startup, short, 0444);
 
 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1507930425-5471-1-git-send-email-shreeya.patel23498%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw
Quoted 21 lines · Julia Lawall
Quoted 18 lines · Shreeya Patel

Resolve following checkpatch issue:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.

---
 drivers/staging/speakup/speakup_bns.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/speakup_bns.c +0 -0
index 60bcf0d..402b0fb 100644
@@ -120,7 +120,7 @@ static struct spk_synth synth_bns = {
  };
 
Quoted 6 lines

drivers/staging/speakup/speakup_bns.c static struct spk_synth synth_bns = { · line 123

Quoted 3 lines
drivers/staging/speakup/speakup_bns.c +1 -1
  module_param_named(ser, synth_bns.ser, int, 0444);
-module_param_named(dev, synth_bns.dev_name, charp, S_IRUGO);
+module_param_named(dev, synth_bns.dev_name, charp, 0444);

This change is already made.  You need to update your staging tree.

julia

Oh, ok i'll do it.

Quoted 21 lines
Quoted 21 lines
drivers/staging/speakup/speakup_bns.c +0 -0
  module_param_named(start, synth_bns.startup, short, 0444);
 

 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0- based).");
--
2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to outreachy-kernel@googlegroups. com.
To view this discussion on the web visit https://groups.google.com/
d/msgid/outreachy-kernel/1507930425-5471-1-git-send-email- shreeya.patel23498%40gmail.com.
For more options, visit https://groups.google.com/d/optout.