automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function
       [not found] <20190925120355.44821-3-mb@smartsharesystems.com>
@ 2019-09-25 12:05 ` checkpatch
  2019-09-25 12:17   ` Morten Brørup
  0 siblings, 1 reply; 4+ messages in thread
From: checkpatch @ 2019-09-25 12:05 UTC (permalink / raw)
  To: test-report; +Cc: Morten Brørup

Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/59738

_coding style issues_


ERROR:CODE_INDENT: code indent should use tabs where possible
#59: FILE: lib/librte_mbuf/rte_mbuf.c:272:
+^I^I^I                     (void **)free, nb_free);$

total: 1 errors, 0 warnings, 67 lines checked

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-test-report] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function
  2019-09-25 12:05 ` [dpdk-test-report] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function checkpatch
@ 2019-09-25 12:17   ` Morten Brørup
  2019-09-25 23:37     ` [dpdk-test-report] [dpdk-dev] " Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Morten Brørup @ 2019-09-25 12:17 UTC (permalink / raw)
  To: Thomas Monjalon; +Cc: checkpatch, test-report, dpdk-dev

Dear Thomas - listed as checkpatch maintainer,

I think this warning is bogus, and is a bug checkpatch.

The line in question was deliberately indented using tabs to the current indentation level, and using spaces for the readability alignment. This makes the code readable in editors with another tab setting than 8 spaces. E.g. 4 spaces is my personal preference.


Med venlig hilsen / kind regards
- Morten Brørup


> -----Original Message-----
> From: checkpatch@dpdk.org [mailto:checkpatch@dpdk.org]
> Sent: Wednesday, September 25, 2019 2:06 PM
> To: test-report@dpdk.org
> Cc: Morten Brørup
> Subject: |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function
> 
> Test-Label: checkpatch
> Test-Status: WARNING
> http://dpdk.org/patch/59738
> 
> _coding style issues_
> 
> 
> ERROR:CODE_INDENT: code indent should use tabs where possible
> #59: FILE: lib/librte_mbuf/rte_mbuf.c:272:
> +^I^I^I                     (void **)free, nb_free);$
> 
> total: 1 errors, 0 warnings, 67 lines checked


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-test-report] [dpdk-dev] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function
  2019-09-25 12:17   ` Morten Brørup
@ 2019-09-25 23:37     ` Stephen Hemminger
  2019-09-27  6:42       ` Morten Brørup
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2019-09-25 23:37 UTC (permalink / raw)
  To: Morten Brørup; +Cc: Thomas Monjalon, checkpatch, test-report, dpdk-dev

On Wed, 25 Sep 2019 14:17:42 +0200
Morten Brørup <mb@smartsharesystems.com> wrote:

> Dear Thomas - listed as checkpatch maintainer,
> 
> I think this warning is bogus, and is a bug checkpatch.
> 
> The line in question was deliberately indented using tabs to the current indentation level, and using spaces for the readability alignment. This makes the code readable in editors with another tab setting than 8 spaces. E.g. 4 spaces is my personal preference.
> 
> 
> Med venlig hilsen / kind regards
> - Morten Brørup

It is understandable that you have personal preferences, but projects like DPDK rely
on common style across all code. The collective decision has been made to keep a
uniform style similar to the Linux kernel.

No it is not a bug in checkpatch.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-test-report] [dpdk-dev] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function
  2019-09-25 23:37     ` [dpdk-test-report] [dpdk-dev] " Stephen Hemminger
@ 2019-09-27  6:42       ` Morten Brørup
  0 siblings, 0 replies; 4+ messages in thread
From: Morten Brørup @ 2019-09-27  6:42 UTC (permalink / raw)
  To: Stephen Hemminger, Thomas Monjalon; +Cc: checkpatch, test-report, dpdk-dev

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Stephen Hemminger
> Sent: Thursday, September 26, 2019 1:37 AM
> 
> On Wed, 25 Sep 2019 14:17:42 +0200
> Morten Brørup <mb@smartsharesystems.com> wrote:
> 
> > Dear Thomas - listed as checkpatch maintainer,
> >
> > I think this warning is bogus, and is a bug checkpatch.
> >
> > The line in question was deliberately indented using tabs to the
> current indentation level, and using spaces for the readability
> alignment. This makes the code readable in editors with another tab
> setting than 8 spaces. E.g. 4 spaces is my personal preference.
> >
> >
> > Med venlig hilsen / kind regards
> > - Morten Brørup
> 
> It is understandable that you have personal preferences, but projects
> like DPDK rely
> on common style across all code. The collective decision has been made
> to keep a
> uniform style similar to the Linux kernel.
> 
> No it is not a bug in checkpatch.

Thank you for the prompt feedback, Stephen.

I thought I could get the best of both worlds with this method of indentation. But since it's against the style guide, I'll change it to comply.


Med venlig hilsen / kind regards
- Morten Brørup


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-02 13:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190925120355.44821-3-mb@smartsharesystems.com>
2019-09-25 12:05 ` [dpdk-test-report] |WARNING| pw59738 [PATCH v2 2/2] mbuf: add bulk free function checkpatch
2019-09-25 12:17   ` Morten Brørup
2019-09-25 23:37     ` [dpdk-test-report] [dpdk-dev] " Stephen Hemminger
2019-09-27  6:42       ` Morten Brørup

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).