staging: speakup: Use octal permissions '0444'
PATCH 1/1 staging: speakup: Use octal permissions '0444'
Fixed the following checkpatch warning:
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.
--- drivers/staging/speakup/speakup_apollo.c | 2 +- drivers/staging/speakup/speakup_audptr.c | 2 +- drivers/staging/speakup/speakup_bns.c | 2 +- drivers/staging/speakup/speakup_decext.c | 2 +- drivers/staging/speakup/speakup_dectlk.c | 2 +- drivers/staging/speakup/speakup_dummy.c | 2 +- drivers/staging/speakup/speakup_ltlk.c | 2 +- drivers/staging/speakup/speakup_spkout.c | 2 +- drivers/staging/speakup/speakup_txprt.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/speakup/speakup_apollo.c +1 -1
@@ -200,7 +200,7 @@ static void do_catch_up(struct spk_synth *synth) }module_param_named (ser, synth_apollo.ser, int,0444 ); -module_param_named (dev, synth_apollo.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_apollo.dev_name, charp,0444 );module_param_named (start, synth_apollo.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_audptr.c +1 -1
@@ -163,7 +163,7 @@ static int synth_probe(struct spk_synth *synth) }module_param_named (ser, synth_audptr.ser, int,0444 ); -module_param_named (dev, synth_audptr.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_audptr.dev_name, charp,0444 );module_param_named (start, synth_audptr.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
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 );module_param_named (start, synth_bns.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_decext.c +1 -1
@@ -227,7 +227,7 @@ static void synth_flush(struct spk_synth *synth) }module_param_named (ser, synth_decext.ser, int,0444 ); -module_param_named (dev, synth_decext.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_decext.dev_name, charp,0444 );module_param_named (start, synth_decext.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_dectlk.c +1 -1
@@ -299,7 +299,7 @@ static void synth_flush(struct spk_synth *synth) }module_param_named (ser, synth_dectlk.ser, int,0444 ); -module_param_named (dev, synth_dectlk.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_dectlk.dev_name, charp,0444 );module_param_named (start, synth_dectlk.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_dummy.c +1 -1
@@ -122,7 +122,7 @@ static struct spk_synth synth_dummy = { };module_param_named (ser, synth_dummy.ser, int,0444 ); -module_param_named (dev, synth_dummy.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_dummy.dev_name, charp,0444 );module_param_named (start, synth_dummy.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_ltlk.c +1 -1
@@ -167,7 +167,7 @@ static int synth_probe(struct spk_synth *synth) }module_param_named (ser, synth_ltlk.ser, int,0444 ); -module_param_named (dev, synth_ltlk.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_ltlk.dev_name, charp,0444 );module_param_named (start, synth_ltlk.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_spkout.c +1 -1
@@ -131,7 +131,7 @@ static void synth_flush(struct spk_synth *synth) }module_param_named (ser, synth_spkout.ser, int,0444 ); -module_param_named (dev, synth_spkout.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_spkout.dev_name, charp,0444 );module_param_named (start, synth_spkout.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
drivers/staging/speakup/speakup_txprt.c +1 -1
@@ -119,7 +119,7 @@ static struct spk_synth synth_txprt = { };module_param_named (ser, synth_txprt.ser, int,0444 ); -module_param_named (dev, synth_txprt.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_txprt.dev_name, charp,0444 );module_param_named (start, synth_txprt.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );
Signature · 1 line
2.7.4
Quoted 6 lines · Mihaela Muraru
Fixed the following checkpatch warning:
WARNING: Symbolic permissions '
S_IRUGO' are not preferred. Consider using octal permissions '0444'.Signed-off-by Mihaela Muraru <[email protected]>
Quoted 139 lines
--- drivers/staging/speakup/speakup_apollo.c | 2 +- drivers/staging/speakup/speakup_audptr.c | 2 +- drivers/staging/speakup/speakup_bns.c | 2 +- drivers/staging/speakup/speakup_decext.c | 2 +- drivers/staging/speakup/speakup_dectlk.c | 2 +- drivers/staging/speakup/speakup_dummy.c | 2 +- drivers/staging/speakup/speakup_ltlk.c | 2 +- drivers/staging/speakup/speakup_spkout.c | 2 +- drivers/staging/speakup/speakup_txprt.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-)drivers/staging/speakup/speakup_apollo.c +1
-1@@ -200,7 +200,7 @@ static void do_catch_up(struct spk_synth *synth) }module_param_named (ser, synth_apollo.ser, int,0444 ); -module_param_named (dev, synth_apollo.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_apollo.dev_name, charp,0444 );module_param_named (start, synth_apollo.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_audptr.c +1
-1@@ -163,7 +163,7 @@ static int synth_probe(struct spk_synth *synth) }module_param_named (ser, synth_audptr.ser, int,0444 ); -module_param_named (dev, synth_audptr.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_audptr.dev_name, charp,0444 );module_param_named (start, synth_audptr.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );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 );module_param_named (start, synth_bns.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_decext.c +1
-1@@ -227,7 +227,7 @@ static void synth_flush(struct spk_synth *synth) }module_param_named (ser, synth_decext.ser, int,0444 ); -module_param_named (dev, synth_decext.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_decext.dev_name, charp,0444 );module_param_named (start, synth_decext.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_dectlk.c +1
-1@@ -299,7 +299,7 @@ static void synth_flush(struct spk_synth *synth) }module_param_named (ser, synth_dectlk.ser, int,0444 ); -module_param_named (dev, synth_dectlk.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_dectlk.dev_name, charp,0444 );module_param_named (start, synth_dectlk.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_dummy.c +1
-1@@ -122,7 +122,7 @@ static struct spk_synth synth_dummy = { };module_param_named (ser, synth_dummy.ser, int,0444 ); -module_param_named (dev, synth_dummy.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_dummy.dev_name, charp,0444 );module_param_named (start, synth_dummy.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_ltlk.c +1
-1@@ -167,7 +167,7 @@ static int synth_probe(struct spk_synth *synth) }module_param_named (ser, synth_ltlk.ser, int,0444 ); -module_param_named (dev, synth_ltlk.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_ltlk.dev_name, charp,0444 );module_param_named (start, synth_ltlk.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_spkout.c +1
-1@@ -131,7 +131,7 @@ static void synth_flush(struct spk_synth *synth) }module_param_named (ser, synth_spkout.ser, int,0444 ); -module_param_named (dev, synth_spkout.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_spkout.dev_name, charp,0444 );module_param_named (start, synth_spkout.startup, short,0444 );MODULE_PARM_DESC (ser,"Set the serial port for the synthesizer (0-based)." );drivers/staging/speakup/speakup_txprt.c +1
-2@@ -119,7 +119,7 @@ static struct spk_synth synth_txprt = { };module_param_named (ser, synth_txprt.ser, int,0444 ); -module_param_named (dev, synth_txprt.dev_name, charp,S_IRUGO ); +module_param_named (dev, synth_txprt.dev_name, charp,0444 );module_param_named (start, synth_txprt.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/20170924084941.GA12556%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.