[ovs-dev] [PATCH] checkpatch: Fix regexp for if, while, etc inside macros.
Aaron Conole
aconole at redhat.com
Fri Aug 9 14:04:45 UTC 2019
Ilya Maximets <i.maximets at samsung.com> writes:
> This allows to use a one-character expression inside the 'if'
> statement and multiple spaces before the line continuation character.
>
> Fixes false positive in case like this:
>
> #define MACRO(ARG) \
> if (a) { \
> do_work(ARG); \
> }
>
> Fixes: 16770c6d9179 ("checkpatch: support macro continuation")
> Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
> ---
Acked-by: Aaron Conole <aconole at redhat.com>
More information about the dev
mailing list