[ovs-dev] [PATCH] checkpatch: Fix regexp for if, while, etc inside macros.

Ilya Maximets i.maximets at samsung.com
Mon Aug 12 08:32:52 UTC 2019


On 09.08.2019 17:04, Aaron Conole wrote:
> 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>

Thanks! Applied to master.

Best regards, Ilya Maximets.


More information about the dev mailing list