From: Stephen Hemminger <stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org>
To: "Wiles, Keith" <keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "dev-VfR2kkLFssw@public.gmane.org" <dev-VfR2kkLFssw@public.gmane.org>
Subject: Re: tools brainstorming
Date: Thu, 9 Apr 2015 14:23:49 -0700 [thread overview]
Message-ID: <20150409142349.5b0b3293@urahara> (raw)
In-Reply-To: <D14C51E1.1AA2A%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
On Thu, 9 Apr 2015 21:10:19 +0000
"Wiles, Keith" <keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> wrote:
>
>
> On 4/9/15, 2:38 PM, "Jay Rolette" <rolette-bIuJOMs36aleGPcbtGPokg@public.gmane.org> wrote:
>
> >On Thu, Apr 9, 2015 at 2:16 PM, Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> wrote:
> >
> >> On Thu, Apr 09, 2015 at 11:31:39AM -0500, Jay Rolette wrote:
> >> > On Wed, Apr 8, 2015 at 5:38 PM, Stephen Hemminger <
> >> > stephen-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org> wrote:
> >> >
> >> > > On Wed, 8 Apr 2015 16:29:54 -0600
> >> > > Jay Rolette <rolette-bIuJOMs36aleGPcbtGPokg@public.gmane.org> wrote:
> >> > >
> >> > > > "C comments" includes //, right? It's been part of the C standard
> >> for a
> >> > > long time now...
> >> > >
> >> > > Yes but.
> >> > > I like to use checkpatch and checkpatch enforces kernel style which
> >> does
> >> > > not allow // for
> >> > > comments.
> >> > >
> >> >
> >> > Fork checkpatch and disable that bit? DPDK isn't the kernel, so no
> >> > requirement to follow all of its rules
> >> >
> >>
> >> Doesn't that beg the question, why? I understand the DPDK isn't the
> >> kernel, but
> >> we're not talking about clarity of code, not anything functional to that
> >> code.
> >> It seems we would be better served by just taking something that works
> >>here
> >> rather than re-inventing the wheel and digging into the minuate of what
> >> type of
> >> comments should be allowed (unless there is a compelling reason to
> >>change
> >> it
> >> that supercedes the avilable tools). If not checkpath, then some other
> >> tool,
> >> but It seems to me that coding style is one of those things where we can
> >> bend to
> >> the tool rather than taking the time to make the tool do exactly whats
> >> desired,
> >> at least until someone gets the time to modify it.
> >>
> >
> >Fair question.
> >
> >It depends a bit on how much you want to encourage patch contributions. Is
> >it worth adding more pain for folks trying to contribute patches for
> >things
> >like this?
> >
> >Should we force someone to spend time redoing a patch because of which way
> >they do their parenthesis? What about number of spaces to indent code? //
> >vs /* */ comments? None of these matter functionally and they don't affect
> >maintenance generally.
> >
> >If someone is modifying existing code, then yeah, they should follow the
> >prevailing style (indention level, brace alignment, etc.) of the file they
> >are in. It helps readability, which makes maintenance easier. However,
> >IMO,
> >mixing // and /* */ for comments doesn't affect the readability of the
> >source.
> >
> >I know if I submit a patch and the only feedback is that I should have
> >used
> >/* */ for comments, I'm extremely unlikely spend extra time to resubmit
> >the
> >patch for pedantry.
>
> I looked at checkpatch.pl for few minutes and the code does check for C99
> comments and adding a command line option to allow C99 comments could
> pretty simple. I found the code around line 3048 or search for C99, it is
> possible it could accepted back into Linux as long as the default option
> was to not allow C99 comments.
>
> Allowing C99 comments would be nice and the only problem I could see if
> some compiler has a problem with them. I believe all of the compilers we
> support allow C99 comments.
>
> The only other reason to allow them is if we add some open source code in
> the future to DPDK which has C99 comments and if would be a pain to have
> to convert that code every time the open source group released a new
> version. It does open that path IMO.
>
> Regards,
> ++Keith
> >
>
But forking a tool means maintaining that tool.
next prev parent reply other threads:[~2015-04-09 21:23 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-20 14:51 tools brainstorming Thomas Monjalon
2015-03-20 15:07 ` Butler, Siobhan A
[not found] ` <0C5AFCA4B3408848ADF2A3073F7D8CC86D53E553-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-23 16:18 ` Thomas Monjalon
2015-03-23 16:50 ` Butler, Siobhan A
2015-03-23 17:35 ` Neil Horman
2015-03-23 23:38 ` Matthew Hall
2015-03-20 15:16 ` Neil Horman
[not found] ` <20150320151604.GB19548-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-03-23 16:22 ` Jim Thompson
[not found] ` <BA558A3F-A9CE-44A5-AA54-58B6EB85DD08-jiyf0hk6h8BBDgjK7y7TUQ@public.gmane.org>
2015-03-23 17:44 ` Neil Horman
[not found] ` <20150323174449.GC5661-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-03-23 21:56 ` Jim Thompson
[not found] ` <7FE11C34-5F05-4A70-BC83-CC6C07F36167-jiyf0hk6h8BBDgjK7y7TUQ@public.gmane.org>
2015-03-23 23:01 ` Neil Horman
2015-03-23 16:26 ` Thomas Monjalon
2015-03-20 15:18 ` Simon Kågström
[not found] ` <550C3A56.5040000-vI6UBbBVNY+JA8cjQkG2/g@public.gmane.org>
2015-03-23 16:29 ` Thomas Monjalon
2015-03-24 8:31 ` Simon Kågström
2015-03-23 8:41 ` Cao, Waterman
2015-03-23 16:18 ` Mcnamara, John
2015-04-08 10:43 ` Butler, Siobhan A
[not found] ` <0C5AFCA4B3408848ADF2A3073F7D8CC86D58F9C2-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-04-08 11:43 ` Neil Horman
[not found] ` <20150408114339.GA22959-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-08 12:16 ` Butler, Siobhan A
[not found] ` <0C5AFCA4B3408848ADF2A3073F7D8CC86D58FB64-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-04-08 12:20 ` Butler, Siobhan A
2015-04-08 13:11 ` Neil Horman
[not found] ` <20150408131105.GD22959-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-08 14:40 ` Butler, Siobhan A
[not found] ` <0C5AFCA4B3408848ADF2A3073F7D8CC86D58FDBF-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-04-08 15:39 ` Neil Horman
2015-04-08 22:29 ` Jay Rolette
[not found] ` <0FBA33A7-A21E-426F-B44E-32E86F2B23DB-bIuJOMs36aleGPcbtGPokg@public.gmane.org>
2015-04-08 22:38 ` Stephen Hemminger
2015-04-09 16:31 ` Jay Rolette
[not found] ` <CADNuJVp+L2OJAswQTJ74qGcDk_ZhyWiaznj0=wQmh7bQCJaAVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-09 19:16 ` Neil Horman
[not found] ` <20150409191658.GC26201-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-09 19:38 ` Jay Rolette
[not found] ` <CADNuJVob8rP_-tJ+0MLuzJbE0As8XAWqr780rg8wMAw94_zgCQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-09 20:14 ` Neil Horman
2015-04-09 21:10 ` Wiles, Keith
[not found] ` <D14C51E1.1AA2A%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-09 21:23 ` Stephen Hemminger [this message]
2015-04-09 21:29 ` Wiles, Keith
[not found] ` <D14C58D8.1AA49%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-10 0:16 ` Neil Horman
2015-04-10 0:26 ` Neil Horman
[not found] ` <20150410002649.GB28597-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org>
2015-04-10 1:49 ` Wiles, Keith
[not found] ` <D14C8F03.1AA76%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-10 11:41 ` Neil Horman
[not found] ` <20150410114119.GA26772-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-10 14:43 ` Wiles, Keith
2015-04-08 14:16 ` Wiles, Keith
[not found] ` <D14A94A9.1A81D%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-14 14:50 ` Bruce Richardson
2015-04-08 15:21 ` Wiles, Keith
2015-04-08 15:53 ` Wiles, Keith
[not found] ` <D14AB7A7.1A8C5%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-08 16:16 ` Thomas Monjalon
2015-04-08 16:25 ` Wiles, Keith
2015-04-08 19:54 ` Butler, Siobhan A
[not found] ` <0C5AFCA4B3408848ADF2A3073F7D8CC86D590392-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-04-14 14:21 ` Bruce Richardson
2015-04-14 14:38 ` Neil Horman
[not found] ` <20150414143817.GA11180-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-14 14:47 ` Thomas Monjalon
2015-04-14 14:54 ` Bruce Richardson
2015-04-14 14:52 ` Bruce Richardson
2015-04-14 15:24 ` Thomas Monjalon
2015-04-14 16:19 ` Wiles, Keith
[not found] ` <D152A63B.1ADAB%keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-14 18:52 ` Wiles, Keith
2015-04-08 18:16 ` Stephen Hemminger
2015-04-08 18:58 ` Matthew Hall
[not found] ` <20150408185833.GB12585-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org>
2015-04-08 22:12 ` Stephen Hemminger
2015-04-08 19:51 ` Butler, Siobhan A
2015-04-14 15:29 ` Bruce Richardson
2015-04-08 21:55 ` Don Provan
2015-04-13 15:02 ` Neil Horman
[not found] ` <20150413150215.GB14966-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-13 23:44 ` Stephen Hemminger
2015-04-16 10:49 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150409142349.5b0b3293@urahara \
--to=stephen-otpzqlsittunbdjkjebofr2eb7je58tq@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
--cc=keith.wiles-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).