checkpatch: Accept form feeds.
authorDaniele Di Proietto <diproiettod@vmware.com>
Mon, 18 Apr 2016 20:14:29 +0000 (13:14 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Mon, 18 Apr 2016 21:36:20 +0000 (14:36 -0700)
commitc61e93d60231ef4a13945c5739889f8a4c6bdc54
tree63956e755826b4792faba1e35be898cb24291a5d
parentbc02606a9a339510bbc78de847987d40fe44f1d6
checkpatch: Accept form feeds.

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@vmware.com>
Acked-by: Ben Pfaff <blp@ovn.org>
utilities/checkpatch.py