Staging: speakup: ERROR: Fix macro parenthesis.
Subsystems (2)
PATCH 2/2 Staging: speakup: ERROR: Fix macro parenthesis.
--- drivers/staging/speakup/speakup_acntpc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/staging/speakup/speakup_acntpc.c +4 -1
@@ -35,7 +35,7 @@#include "speakup_acnt.h" /* local header file for Accent values */ #define DRV_VERSION "2.10" -#define PROCSPEECH '\r' +#define PROCSPEECH ('\r')static int synth_probe (struct spk_synth *synth);static void accent_release (void );
@@ -152,8 +152,10 @@ static inline bool synth_full(void)static const char *synth_immediate (struct spk_synth *synth,const char *buf) {u_char ch; +while ((ch = *buf)) {int timeout =SPK_XMITR_TIMEOUT ; +if (ch =='\n' ) ch =PROCSPEECH ;if (synth_full ())
@@ -257,6 +259,7 @@ static int synth_probe(struct spk_synth *synth) {unsigned int port_val =0 ;int i =0 ; +pr_info ("Probing for %s.\n" , synth->long_name);if (port_forced) { speakup_info.port_tts = port_forced;
Signature · 1 line
1.9.1
Joe Perches
maintainerPATCH 1/1 checkpatch: fix complex macro false positive for escaped constant char
A single escaped constant char is not a complex macro.
---
drivers/staging/speakup/speakup_acntpc.c
Quoted 1 line · Choi Gi-yong
drivers/staging/speakup/speakup_acntpc.c +0
-0
[]
drivers/staging/speakup/speakup_acntpc.c
Quoted 1 line
drivers/staging/speakup/speakup_acntpc.c +0
-0@@ -35,7 +35,7 @@
[]
drivers/staging/speakup/speakup_acntpc.c line 35
Quoted 2 lines
drivers/staging/speakup/speakup_acntpc.c +1
-1-#define PROCSPEECH '\r' +#define PROCSPEECH ('\r')
checkpatch false positive, doesn't need parenthesis
scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
@@ -3757,7 +3757,7 @@ sub process { $dstat !~ /^(?:$Ident|-?$Constant),$/ && # 10, // foo(), $dstat !~ /^(?:$Ident|-?$Constant);$/ && # foo(); $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz - $dstat !~ /^'X'$/ && # character constants + $dstat !~ /^'X'$/ && $dstat !~ /^'XX'$/ && # character constants $dstat !~ /$exceptions/ && $dstat !~ /^\.$Ident\s*=/ && # .foo = $dstat !~ /^(?:\#\s*$Ident|\#\s*$Constant)\s*$/ && # stringification #foo
It looks like this patch is adding blank lines not parenthesis like the subject says.
regards,
dan carpenter
Quoted 44 lines · Choi Gi-yong
Signed-off-by Choi Gi-yong <[email protected]>--- drivers/staging/speakup/speakup_acntpc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/staging/speakup/speakup_acntpc.c +4
-1@@ -35,7 +35,7 @@#include "speakup_acnt.h" /* local header file for Accent values */ #define DRV_VERSION "2.10" -#define PROCSPEECH '\r' +#define PROCSPEECH ('\r')static int synth_probe (struct spk_synth *synth);static void accent_release (void );@@ -152,8 +152,10 @@ static inline bool synth_full(void)static const char *synth_immediate (struct spk_synth *synth,const char *buf) {u_char ch; +while ((ch = *buf)) {int timeout =SPK_XMITR_TIMEOUT ; +if (ch =='\n' ) ch =PROCSPEECH ;if (synth_full ())@@ -257,6 +259,7 @@ static int synth_probe(struct spk_synth *synth) {unsigned int port_val =0 ;int i =0 ; +pr_info ("Probing for %s.\n" , synth->long_name);if (port_forced) { speakup_info.port_tts = port_forced;Signature · 6 lines
1.9.1 _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
I made a stupid mistake, and I'm sorry.
https://lkml.org/lkml/2014/6/8/53
2014-06-09 2:58 GMT+09:00 Dan Carpenter <[email protected]>:
Quoted 51 lines
It looks like this patch is adding blank lines not parenthesis like the subject says.
regards,
dan carpenterQuoted 44 lines · Choi Gi-yong
Signed-off-by Choi Gi-yong <[email protected]>--- drivers/staging/speakup/speakup_acntpc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/staging/speakup/speakup_acntpc.c +4
-2@@ -35,7 +35,7 @@#include "speakup_acnt.h" /* local header file for Accent values */ #define DRV_VERSION "2.10" -#define PROCSPEECH '\r' +#define PROCSPEECH ('\r')static int synth_probe (struct spk_synth *synth);static void accent_release (void );@@ -152,8 +152,10 @@ static inline bool synth_full(void)static const char *synth_immediate (struct spk_synth *synth,const char *buf) {u_char ch; +while ((ch = *buf)) {int timeout =SPK_XMITR_TIMEOUT ; +if (ch =='\n' ) ch =PROCSPEECH ;if (synth_full ())@@ -257,6 +259,7 @@ static int synth_probe(struct spk_synth *synth) {unsigned int port_val =0 ;int i =0 ; +pr_info ("Probing for %s.\n" , synth->long_name);if (port_forced) { speakup_info.port_tts = port_forced; --1.9.1
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Signature · 2 lines
최 기용 Choi Gi-yong