Commit ca7ce5a2 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

coccinelle: platform_get_irq: Fix parse error

When do coccicheck, I get this error:

spatch -D report --no-show-diff --very-quiet --cocci-file
./scripts/coccinelle/api/platform_get_irq.cocci --include-headers
--dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include
 -I ./arch/x86/include/uapi -I ./arch/x86/include/generated/uapi
 -I ./include/uapi -I ./include/generated/uapi
 --include ./include/linux/kconfig.h --jobs 192 --chunksize 1
minus: parse error:
  File "./scripts/coccinelle/api/platform_get_irq.cocci", line 24, column 9, charpos = 355
  around = '\(',
  whole content = if ( ret \( < \| <= \) 0 )

In commit e56476897448 ("fpga: Remove dev_err() usage
after platform_get_irq()") log, I found the semantic patch,
it fix this issue.

Fixes: 98051ba2 ("coccinelle: Add script to check for platform_get_irq() excessive prints")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarStephen Boyd <swboyd@chromium.org>
Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/20190906033006.17616-1-yuehaibing@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d5a013f
...@@ -21,7 +21,7 @@ platform_get_irq ...@@ -21,7 +21,7 @@ platform_get_irq
platform_get_irq_byname platform_get_irq_byname
)(E, ...); )(E, ...);
if ( ret \( < \| <= \) 0 ) if ( \( ret < 0 \| ret <= 0 \) )
{ {
( (
if (ret != -EPROBE_DEFER) if (ret != -EPROBE_DEFER)
...@@ -47,7 +47,7 @@ platform_get_irq ...@@ -47,7 +47,7 @@ platform_get_irq
platform_get_irq_byname platform_get_irq_byname
)(E, ...); )(E, ...);
if ( ret \( < \| <= \) 0 ) if ( \( ret < 0 \| ret <= 0 \) )
{ {
( (
-if (ret != -EPROBE_DEFER) -if (ret != -EPROBE_DEFER)
...@@ -74,7 +74,7 @@ platform_get_irq ...@@ -74,7 +74,7 @@ platform_get_irq
platform_get_irq_byname platform_get_irq_byname
)(E, ...); )(E, ...);
if ( ret \( < \| <= \) 0 ) if ( \( ret < 0 \| ret <= 0 \) )
{ {
( (
if (ret != -EPROBE_DEFER) if (ret != -EPROBE_DEFER)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment