Re: [BUG] scripts/checkpatch.pl: false positive missing parentheses

2018-05-07 Thread Heinrich Schuchardt
On 05/07/2018 10:43 PM, Joe Perches wrote: > On Mon, 2018-05-07 at 20:31 +0200, Heinrich Schuchardt wrote: >> This patch creates a false positive: >> ERROR: Macros with complex values should be enclosed in parentheses >> >> Here we define a constant that can be used to initialize a structure. >>

Re: [BUG] scripts/checkpatch.pl: false positive missing parentheses

2018-05-07 Thread Heinrich Schuchardt
On 05/07/2018 10:43 PM, Joe Perches wrote: > On Mon, 2018-05-07 at 20:31 +0200, Heinrich Schuchardt wrote: >> This patch creates a false positive: >> ERROR: Macros with complex values should be enclosed in parentheses >> >> Here we define a constant that can be used to initialize a structure. >>

Re: [BUG] scripts/checkpatch.pl: false positive missing parentheses

2018-05-07 Thread Joe Perches
On Mon, 2018-05-07 at 20:31 +0200, Heinrich Schuchardt wrote: > This patch creates a false positive: > ERROR: Macros with complex values should be enclosed in parentheses > > Here we define a constant that can be used to initialize a structure. > Adding parentheses would lead to a compile time

Re: [BUG] scripts/checkpatch.pl: false positive missing parentheses

2018-05-07 Thread Joe Perches
On Mon, 2018-05-07 at 20:31 +0200, Heinrich Schuchardt wrote: > This patch creates a false positive: > ERROR: Macros with complex values should be enclosed in parentheses > > Here we define a constant that can be used to initialize a structure. > Adding parentheses would lead to a compile time

[BUG] scripts/checkpatch.pl: false positive missing parentheses

2018-05-07 Thread Heinrich Schuchardt
This patch creates a false positive: ERROR: Macros with complex values should be enclosed in parentheses Here we define a constant that can be used to initialize a structure. Adding parentheses would lead to a compile time error: error: braced-group within expression allowed only inside a

[BUG] scripts/checkpatch.pl: false positive missing parentheses

2018-05-07 Thread Heinrich Schuchardt
This patch creates a false positive: ERROR: Macros with complex values should be enclosed in parentheses Here we define a constant that can be used to initialize a structure. Adding parentheses would lead to a compile time error: error: braced-group within expression allowed only inside a