Skip to content

travis: Enforce kernel coding style on rdma-core#168

Merged
dledford merged 1 commit into
linux-rdma:masterfrom
rleon:topic/add-checkpatch-to-travis
Jul 18, 2017
Merged

travis: Enforce kernel coding style on rdma-core#168
dledford merged 1 commit into
linux-rdma:masterfrom
rleon:topic/add-checkpatch-to-travis

Conversation

@rleon
Copy link
Copy Markdown
Member

@rleon rleon commented Jul 15, 2017

The rdma-core library is tightly coupled to the linux-rdma kernel
and developed mostly by the same kernel developers. Enforcement of
the same coding style as used for kernel development has potential
to reduce errors and improve readability.

Despite the fact that checkpatch is written as general tool, the
differences between kernel and user space requires from us to
skip kernel types, file movement and execute permissions checks.

Signed-off-by: Leon Romanovsky leon@kernel.org

@rleon rleon force-pushed the topic/add-checkpatch-to-travis branch from 9d7b953 to 6877c5f Compare July 15, 2017 07:56
The rdma-core library is tightly coupled to the linux-rdma kernel
and developed mostly by the same kernel developers. Enforcement of
the same coding style as used for kernel development has potential
to reduce errors and improve readability.

Despite the fact that checkpatch is written as general tool, the
differences between kernel and user space requires from us to
skip kernel types, file movement and execute permissions checks.

Signed-off-by: Leon Romanovsky <leon@kernel.org>
@rleon rleon force-pushed the topic/add-checkpatch-to-travis branch from 6877c5f to ecc5ff0 Compare July 15, 2017 08:12
@dledford dledford merged commit 6c9166f into linux-rdma:master Jul 18, 2017
@rleon
Copy link
Copy Markdown
Member Author

rleon commented Jul 18, 2017

@dledford thanks

@jgunthorpe it is actually checks for SOB in the patches without need to install anything.

@jgunthorpe
Copy link
Copy Markdown
Member

Lets see how it goes.. checkpatch is often strangely opinionated..

@jgunthorpe
Copy link
Copy Markdown
Member

This aborts travis for any sparse warnings, not just errors, so I don't think it is really going to work well enough as is..

eg I re-based the #165 to trigger this new check and see how it goes off the rails with warnings.

@rleon
Copy link
Copy Markdown
Member Author

rleon commented Jul 19, 2017

@jgunthorpe , I see.

We can ignore warnings and fail for errors only

@rleon
Copy link
Copy Markdown
Member Author

rleon commented Jul 19, 2017

But it is bad, I don't know if we catch something with such limited check

@rleon
Copy link
Copy Markdown
Member Author

rleon commented Jul 19, 2017

@jgunthorpe #170

@rleon rleon deleted the topic/add-checkpatch-to-travis branch September 18, 2017 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants