diff mbox

[ovs-dev] checkpatch: Skip checking Linux headers.

Message ID 20170530225034.4728-1-joe@ovn.org
State Accepted
Headers show

Commit Message

Joe Stringer May 30, 2017, 10:50 p.m. UTC
Headers introduced from Linux do not need the style checking applied.

Signed-off-by: Joe Stringer <joe@ovn.org>
---
 utilities/checkpatch.py | 2 ++
 1 file changed, 2 insertions(+)

Comments

Ben Pfaff May 30, 2017, 11:05 p.m. UTC | #1
On Tue, May 30, 2017 at 03:50:34PM -0700, Joe Stringer wrote:
> Headers introduced from Linux do not need the style checking applied.
> 
> Signed-off-by: Joe Stringer <joe@ovn.org>

Acked-by: Ben Pfaff <blp@ovn.org>
Joe Stringer May 31, 2017, 1:44 a.m. UTC | #2
On 30 May 2017 at 16:05, Ben Pfaff <blp@ovn.org> wrote:
> On Tue, May 30, 2017 at 03:50:34PM -0700, Joe Stringer wrote:
>> Headers introduced from Linux do not need the style checking applied.
>>
>> Signed-off-by: Joe Stringer <joe@ovn.org>
>
> Acked-by: Ben Pfaff <blp@ovn.org>

Thanks, applied.
diff mbox

Patch

diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py
index 751abd924c6a..d7279252fc1b 100755
--- a/utilities/checkpatch.py
+++ b/utilities/checkpatch.py
@@ -352,6 +352,8 @@  def ovs_checkpatch_parse(text):
             # linux or windows coding standards
             if current_file.startswith('datapath'):
                 continue
+            if current_file.startswith('include/linux'):
+                continue
             run_checks(current_file, cmp_line, lineno)
     if __errors or __warnings:
         return -1