[ovs-dev] [PATCH] checkpatch: Accept form feeds.

Daniele Di Proietto diproiettod at vmware.com
Mon Apr 18 21:40:02 UTC 2016



On 18/04/2016 14:26, "Ben Pfaff" <blp at ovn.org> wrote:

>On Mon, Apr 18, 2016 at 02:02:37PM -0700, Daniele Di Proietto wrote:
>> CodingStyle.md says:
>> 
>> "Use form feeds (control+L) to divide long source files into logical
>> pieces.  A form feed should appear as the only character on a line."
>> 
>> checkpatch.py currently complains about form feed. For example, on
>> commit 2c06d9a927c5("ovstest: Add test-netlink-conntrack command."),
>> checkpatch.py returns:
>> 
>>     W(140): Line has non-spaces leading whitespace
>>     W(140): Line has trailing whitespace
>>     +
>> 
>>     W(177): Line has non-spaces leading whitespace
>>     W(177): Line has trailing whitespace
>>     +
>> 
>>     W(199): Line has non-spaces leading whitespace
>>     W(199): Line has trailing whitespace
>>     +
>> 
>> This commit suppresses the two warnings for lines with form feeds as the
>> only character.
>> 
>> Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
>
>Thanks.
>
>Acked-by: Ben Pfaff <blp at ovn.org>

Thanks, pushed to master!




More information about the dev mailing list